Fix compile errors
This commit is contained in:
parent
0347b8cd45
commit
c69b33c8df
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue