Skip to content

Commit 4d1c75a

Browse files
committed
Replace deprecated call to Code.load_file/1
This function was replaced by Code.compile_file/1 and is deprecated with planned removal in 1.9. See: elixir-lang/elixir#7201
1 parent 3bf0081 commit 4d1c75a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/watcher.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ defmodule Watcher do
2424
if Path.extname(file) == ".ex" do
2525
try do
2626
file
27-
|> Code.load_file()
27+
|> Code.compile_file()
2828
|> Enum.map(&elem(&1, 0))
2929
|> Enum.find(&Runner.koan?/1)
3030
|> Runner.modules_to_run()

0 commit comments

Comments
 (0)