Skip to content

Commit

Permalink
Fix a dialyzer-issued warning
Browse files Browse the repository at this point in the history
  • Loading branch information
paulo-ferraz-oliveira authored and eproxus committed Mar 3, 2021
1 parent 06192a9 commit b939af9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/meck_proc.erl
Expand Up @@ -596,12 +596,12 @@ restore_original(Mod, {false, _Bin}, WasSticky, _BackupCover) ->
restick_original(Mod, WasSticky),
ok;
restore_original(Mod, {{File, OriginalCover, Options}, _Bin}, WasSticky, BackupCover) ->
case filename:extension(File) of
".erl" ->
{ok, Mod} = cover:compile_module(File, Options);
".beam" ->
cover:compile_beam(File)
end,
{ok, Mod} = case filename:extension(File) of
".erl" ->
cover:compile_module(File, Options);
".beam" ->
cover:compile_beam(File)
end,
restick_original(Mod, WasSticky),
if BackupCover =/= undefined ->
%% Import the cover data for `<name>_meck_original' but since it was
Expand Down

0 comments on commit b939af9

Please sign in to comment.