summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvans163 <vans_163@yahoo.com>2016-09-01 14:20:48 -0400
committervans163 <vans_163@yahoo.com>2016-09-01 14:20:48 -0400
commit9b64c60f8bbbac7686d0f8d1f56219c847d2c811 (patch)
tree448e3c5dc0d41479b7356520813f00c4db2892c2
parentd74cd14065bacf786bf4a463aa47715e80b412ec (diff)
comment and spacing fixup
-rw-r--r--src/rebar_agent.erl9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/rebar_agent.erl b/src/rebar_agent.erl
index 72bbe44..818401d 100644
--- a/src/rebar_agent.erl
+++ b/src/rebar_agent.erl
@@ -125,7 +125,7 @@ refresh_state(RState, _Dir) ->
reload_modules([]) -> noop;
reload_modules(Modules) ->
- reload_modules(Modules, erlang:function_exported(code, prepare_loading, 1)).
+ reload_modules(Modules, erlang:function_exported(code, prepare_loading, 1)).
%% OTP 19 and later -- use atomic loading and ignore unloadable mods
reload_modules(Modules, true) ->
@@ -137,16 +137,15 @@ reload_modules(Modules, true) ->
{error, ModRsns} ->
Blacklist =
(fun Error([], Acc) -> Acc;
- Error([ {ModNif, on_load_not_allowed} |T], Acc) ->
+ Error([ {ModNif, on_load_not_allowed} |T], Acc) ->
reload_modules([ModNif], false),
Error(T, [ModNif|Acc]);
- Error([ {ModError, _} |T], Acc) ->
+ Error([ {ModError, _} |T], Acc) ->
Error(T, [ModError|Acc])
end)(ModRsns, []),
reload_modules(Modules -- Blacklist, true)
end;
-%% Older versions, use a more ad-hoc mechanism. Specifically has
-%% a harder time dealing with NIFs.
+%% Older versions, use a more ad-hoc mechanism.
reload_modules(Modules, false) ->
[begin code:purge(M), code:load_file(M) end || M <- Modules].