fix(dashboard): make dialyzer happy
This commit is contained in:
parent
0f8ebbdf0f
commit
463d255c0a
|
@ -310,7 +310,7 @@ add_default_user(Username, Password) ->
|
|||
end.
|
||||
|
||||
add_bootstrap_user(File) ->
|
||||
case file:open(File, read) of
|
||||
case file:open(File, [read]) of
|
||||
{ok, Dev} ->
|
||||
{ok, MP} = re:compile(<<"(\.+):(\.+)">>),
|
||||
try
|
||||
|
@ -330,7 +330,8 @@ load_bootstrap_user(Dev, MP) ->
|
|||
{ok, Line} ->
|
||||
case re:run(Line, MP, [global, {capture, all_but_first, binary}]) of
|
||||
{match, Captured} ->
|
||||
[add_user(Username, Password, <<>>) || [Username, Password] <- Captured];
|
||||
_ = [add_user(Username, Password, <<>>) || [Username, Password] <- Captured],
|
||||
ok;
|
||||
_ ->
|
||||
ok
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue