Skip to content

Commit

Permalink
Merge pull request #111 from Adzz/patch-1
Browse files Browse the repository at this point in the history
Update utils.ex
  • Loading branch information
msz authored Jun 5, 2022
2 parents e220596 + 44550ec commit 7de8d24
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/hammox/utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ defmodule Hammox.Utils do
end

def check_module_exists(module) do
case Code.ensure_compiled(module) do
{:module, _} ->
true

_ ->
raise(ArgumentError,
message: "Could not find module #{module_to_string(module)}."
)
end
Code.ensure_compiled!(module)
end
end

0 comments on commit 7de8d24

Please sign in to comment.