File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ defmodule Module.ParallelChecker do
52
52
# we discard their module map on purpose and start from file.
53
53
info =
54
54
if beam_location != [ ] and Keyword . has_key? ( module_map . attributes , :__protocol__ ) do
55
- { module , List . to_string ( beam_location ) }
55
+ List . to_string ( beam_location )
56
56
else
57
57
cache_from_module_map ( table , module_map )
58
58
end
@@ -72,12 +72,12 @@ defmodule Module.ParallelChecker do
72
72
Process . link ( pid )
73
73
74
74
module_tuple =
75
- case info do
76
- { module , location } ->
75
+ cond do
76
+ is_binary ( info ) ->
77
77
location =
78
78
case :code . which ( module ) do
79
79
[ _ | _ ] = path -> path
80
- _ -> location
80
+ _ -> info
81
81
end
82
82
83
83
with { :ok , binary } <- File . read ( location ) ,
@@ -89,7 +89,7 @@ defmodule Module.ParallelChecker do
89
89
_ -> nil
90
90
end
91
91
92
- _ ->
92
+ is_tuple ( info ) ->
93
93
info
94
94
end
95
95
You can’t perform that action at this time.
0 commit comments