style: make elvis happy
This commit is contained in:
parent
a4d0a9266a
commit
a0a1a2b972
|
@ -111,8 +111,9 @@ run_command(help, []) ->
|
||||||
run_command(Cmd, Args) when is_atom(Cmd) ->
|
run_command(Cmd, Args) when is_atom(Cmd) ->
|
||||||
case lookup_command(Cmd) of
|
case lookup_command(Cmd) of
|
||||||
[{Mod, Fun}] ->
|
[{Mod, Fun}] ->
|
||||||
try Mod:Fun(Args) of
|
try
|
||||||
_ -> ok
|
_ = apply(Mod, Fun, [Args]),
|
||||||
|
ok
|
||||||
catch
|
catch
|
||||||
_:Reason:Stacktrace ->
|
_:Reason:Stacktrace ->
|
||||||
?SLOG(error, #{
|
?SLOG(error, #{
|
||||||
|
@ -147,7 +148,7 @@ help() ->
|
||||||
lists:foreach(
|
lists:foreach(
|
||||||
fun({_, {Mod, Cmd}, _}) ->
|
fun({_, {Mod, Cmd}, _}) ->
|
||||||
print("~110..-s~n", [""]),
|
print("~110..-s~n", [""]),
|
||||||
Mod:Cmd(usage)
|
apply(Mod, Cmd, [usage])
|
||||||
end,
|
end,
|
||||||
Cmds
|
Cmds
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue