Skip to content

Commit

Permalink
Merge pull request elixirkoans#229 from elixirkoans/replace-deprecate…
Browse files Browse the repository at this point in the history
…d-function

Replace deprecated call to Code.load_file/1
  • Loading branch information
felipesere authored Dec 6, 2018
2 parents 3bf0081 + 4d1c75a commit 9383bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/watcher.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9383bc8

Please sign in to comment.