Skip to content
Snippets Groups Projects
Commit b1d5d39c authored by José Valim's avatar José Valim Committed by Xiangrong Hao
Browse files

Update fs_inotify.ex (#59)

parent 42d0a730
No related branches found
No related tags found
No related merge requests found
...@@ -49,13 +49,7 @@ defmodule FileSystem.Backends.FSInotify do ...@@ -49,13 +49,7 @@ defmodule FileSystem.Backends.FSInotify do
end end
defp executable_path(:config) do defp executable_path(:config) do
with config when is_list(config) <- Application.get_env(:file_system, :fs_mac), Application.get_env(:file_system, :fs_inotify)[:executable_file]
executable_file when not is_nil(executable_file) <- Keyword.get(config, :executable_file)
do
executable_file |> to_string
else
_ -> nil
end
end end
defp executable_path(:system_env) do defp executable_path(:system_env) do
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment