Skip to content

Commit 1a94935

Browse files
fishcakezJosé Valim
authored andcommitted
Fix GenEvent detecting module that isn't loaded
Signed-off-by: José Valim <[email protected]>
1 parent 45fe1cb commit 1a94935

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/elixir/lib/gen_event.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ defmodule GenEvent do
10151015
case reason do
10161016
{:undef, [{m,f,a,_}|_]=mfas} ->
10171017
cond do
1018-
:code.is_loaded(m) ->
1018+
:code.is_loaded(m) === false ->
10191019
{:"module could not be loaded", mfas}
10201020
function_exported?(m, f, length(a)) ->
10211021
reason

0 commit comments

Comments
 (0)