diff options
author | Björn-Egil Dahlberg <[email protected]> | 2016-05-13 13:27:18 +0200 |
---|---|---|
committer | Björn-Egil Dahlberg <[email protected]> | 2016-05-13 13:27:18 +0200 |
commit | 9addbee447442a08430557c20d24c961df224926 (patch) | |
tree | 7264efe3d313246b035bdd7f8353529382fa0645 /lib/os_mon/src/cpu_sup.erl | |
parent | d9facba40a015ce90cea300e7387cce02c978e47 (diff) | |
parent | 72edb4e6d3ae5ea0fb356597a4f446178aee41ab (diff) | |
download | otp-9addbee447442a08430557c20d24c961df224926.tar.gz otp-9addbee447442a08430557c20d24c961df224926.tar.bz2 otp-9addbee447442a08430557c20d24c961df224926.zip |
Merge branch 'egil/os_mon/fix-unmatched_return/OTP-13595'
* egil/os_mon/fix-unmatched_return/OTP-13595:
os_mon: Fix unmatched return warnings
Diffstat (limited to 'lib/os_mon/src/cpu_sup.erl')
-rw-r--r-- | lib/os_mon/src/cpu_sup.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/os_mon/src/cpu_sup.erl b/lib/os_mon/src/cpu_sup.erl index 5664615230..5eb067a5a3 100644 --- a/lib/os_mon/src/cpu_sup.erl +++ b/lib/os_mon/src/cpu_sup.erl @@ -531,11 +531,11 @@ measurement_server_loop(State) -> measurement_server_loop(State) end; {Pid, Request} -> - try get_uint32_measurement(Request, State) of - Result -> Pid ! {data, Result} - catch - Error -> Pid ! {error, Error} - end, + _ = try get_uint32_measurement(Request, State) of + Result -> Pid ! {data, Result} + catch + Error -> Pid ! {error, Error} + end, measurement_server_loop(State); {'EXIT', OldPid, _n} when State#internal.port == OldPid -> {ok, NewPid} = port_server_start_link(), |