diff options
author | Dan Gudmundsson <[email protected]> | 2012-06-28 10:27:33 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-06-28 10:27:33 +0200 |
commit | 3af8c55fb68b7047ff1f8c333528167c875c2cbc (patch) | |
tree | 660a4b7d8e96d30142c270ca29e8dc11e88b1882 /lib/observer/src/observer_procinfo.erl | |
parent | 2f21ad26a9f3000d62660edde22874603aa2baaa (diff) | |
download | otp-3af8c55fb68b7047ff1f8c333528167c875c2cbc.tar.gz otp-3af8c55fb68b7047ff1f8c333528167c875c2cbc.tar.bz2 otp-3af8c55fb68b7047ff1f8c333528167c875c2cbc.zip |
[observer] Fix dialyser warnings
Diffstat (limited to 'lib/observer/src/observer_procinfo.erl')
-rw-r--r-- | lib/observer/src/observer_procinfo.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/observer/src/observer_procinfo.erl b/lib/observer/src/observer_procinfo.erl index 13e41cfe33..45218c177b 100644 --- a/lib/observer/src/observer_procinfo.erl +++ b/lib/observer/src/observer_procinfo.erl @@ -127,17 +127,15 @@ terminate(_Reason, #state{parent=Parent,pid=Pid,frame=Frame}) -> ok. code_change(_, _, State) -> - {stop, not_yet_implemented, State}. + {ok, State}. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% init_process_page(Panel, Pid) -> Fields0 = process_info_fields(Pid), {FPanel, _, UpFields} = observer_lib:display_info(Panel, Fields0), - {FPanel, fun() -> case process_info_fields(Pid) of - Fields when is_list(Fields) -> - observer_lib:update_info(UpFields, Fields); - _ -> ok - end + {FPanel, fun() -> + Fields = process_info_fields(Pid), + observer_lib:update_info(UpFields, Fields) end}. init_text_page(Parent) -> |