diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-10 15:07:54 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-12 13:40:10 +0200 |
commit | 5f312eab94a4477a36637f9594ae6da9b8b2a6aa (patch) | |
tree | 0a08d287e185e6a9c0eccc7a89950b92c9ae277f /lib/runtime_tools/src/erts_alloc_config.erl | |
parent | 715876f5e6d40bc75ad8f3e6c4c70249aea0fc66 (diff) | |
download | otp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.tar.gz otp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.tar.bz2 otp-5f312eab94a4477a36637f9594ae6da9b8b2a6aa.zip |
runtime_tools: Fix unmatched return warnings
Diffstat (limited to 'lib/runtime_tools/src/erts_alloc_config.erl')
-rw-r--r-- | lib/runtime_tools/src/erts_alloc_config.erl | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/runtime_tools/src/erts_alloc_config.erl b/lib/runtime_tools/src/erts_alloc_config.erl index e94cced911..514530332c 100644 --- a/lib/runtime_tools/src/erts_alloc_config.erl +++ b/lib/runtime_tools/src/erts_alloc_config.erl @@ -128,7 +128,7 @@ make_config(FileName) when is_list(FileName) -> case file:open(FileName, [write]) of {ok, IODev} -> Res = req({make_config, IODev}), - file:close(IODev), + ok = file:close(IODev), Res; Error -> Error @@ -200,9 +200,11 @@ server_loop(State) -> Conf = #conf{segments = ?MBC_MSEG_LIMIT, format_to = IODev}, Res = mk_config(Conf, State#state.alloc), - From ! {response, Ref, Res}; + From ! {response, Ref, Res}, + ok; _ -> - From ! {response, Ref, no_scenario_saved} + From ! {response, Ref, no_scenario_saved}, + ok end, State; {request, From, Ref, stop} -> |