Fix compile errors

This commit is contained in:
Mikko Ahlroth 2017-04-03 23:40:29 +03:00
parent 0347b8cd45
commit c69b33c8df

View file

@ -202,10 +202,10 @@ defmodule MBU.TaskUtils do
Returns a WatchSpec.
"""
@spec watch(String.t, String.t, ([{String.t, [atom]}] -> any)) | module :: %WatchSpec{}
@spec watch(String.t, String.t, ([{String.t, [atom]}] -> any) | module) :: %WatchSpec{}
def watch(name, path, fun_or_mod)
def watch(name, path, fun_or_mod) when is_atom(fun_or_mod), do
def watch(name, path, fun_or_mod) when is_atom(fun_or_mod) do
watch(name, path, fn _ -> run_task(fun_or_mod, deps: false) end)
end