We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 37cf517 + 826c211 commit 3aa744fCopy full SHA for 3aa744f
src/rabbit_boot_steps.erl
@@ -44,21 +44,17 @@ find_steps(Apps) ->
44
[Step || {App, _, _} = Step <- All, lists:member(App, Apps)].
45
46
run_step(Attributes, AttributeName) ->
47
- case [MFA || {Key, MFA} <- Attributes,
48
- Key =:= AttributeName] of
49
- [] ->
50
- ok;
51
- MFAs ->
52
- [begin
53
- rabbit_log:debug("Applying MFA: M = ~s, F = ~s, A = ~p",
54
- [M, F, A]),
55
- case apply(M,F,A) of
56
- ok -> ok;
57
- {error, Reason} -> exit({error, Reason})
58
- end
59
- end || {M,F,A} <- MFAs],
60
- ok
61
- end.
+ [begin
+ rabbit_log:debug("Applying MFA: M = ~s, F = ~s, A = ~p",
+ [M, F, A]),
+ case apply(M,F,A) of
+ ok -> ok;
+ {error, Reason} -> exit({error, Reason})
+ end
+ || {Key, {M,F,A}} <- Attributes,
+ Key =:= AttributeName],
+ ok.
62
63
vertices({AppName, _Module, Steps}) ->
64
[{StepName, {AppName, StepName, Atts}} || {StepName, Atts} <- Steps].
0 commit comments