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: https://github.com/elixir-lang/elixir/pull/7201
This commit is contained in:
Jay Hayes
2018-12-06 07:50:32 -06:00
parent f2cf318b1d
commit 8c0c314e78

View File

@@ -24,7 +24,7 @@ defmodule Watcher do
if Path.extname(file) == ".ex" do
try do
file
|> Code.load_file()
|> Code.compile_file()
|> Enum.map(&elem(&1, 0))
|> Enum.find(&Runner.koan?/1)
|> Runner.modules_to_run()