Cleanup farmware lookup

This commit is contained in:
Connor Rigby 2017-12-07 18:09:15 -08:00 committed by Connor Rigby
parent e140d152d8
commit 51a9682adf

View file

@ -127,7 +127,7 @@ defmodule Farmbot.Farmware do
defdelegate execute(fw), to: Farmbot.Farmware.Runtime
@doc "Lookup a farmware by it's name."
def lookup(name, version \\ nil) do
def lookup(name) do
dir = Farmbot.Farmware.Installer.install_root_path
with {:ok, all_installed} <- File.ls(dir),
true <- name in all_installed