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:
@@ -24,7 +24,7 @@ defmodule Watcher do
|
|||||||
if Path.extname(file) == ".ex" do
|
if Path.extname(file) == ".ex" do
|
||||||
try do
|
try do
|
||||||
file
|
file
|
||||||
|> Code.load_file()
|
|> Code.compile_file()
|
||||||
|> Enum.map(&elem(&1, 0))
|
|> Enum.map(&elem(&1, 0))
|
||||||
|> Enum.find(&Runner.koan?/1)
|
|> Enum.find(&Runner.koan?/1)
|
||||||
|> Runner.modules_to_run()
|
|> Runner.modules_to_run()
|
||||||
|
|||||||
Reference in New Issue
Block a user