We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5d770e commit 4bb4206Copy full SHA for 4bb4206
lib/watcher.ex
@@ -36,15 +36,8 @@ defmodule Watcher do
36
end
37
38
39
- # Elixir 1.7 deprecates Code.load_file in favor of Code.compile_file. In
40
- # order to avoid the depecation warnings while maintaining backwards
41
- # compatibility, we check the sytem version and execute conditionally.
42
defp portable_load_file(file) do
43
- if Version.match?(System.version(), "~> 1.7") do
44
- Code.compile_file(file)
45
- else
46
- Code.load_file(file)
47
- end
+ Code.compile_file(file)
48
49
50
defp normalize(file) do
0 commit comments