Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Ledest:erlang:24
erlang
0347-observer-runtime_tools-Fixed-dialyzer-issu...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0347-observer-runtime_tools-Fixed-dialyzer-issue.patch of Package erlang
From c0ef16649ceb1e13a054aca767e7edac4aad7601 Mon Sep 17 00:00:00 2001 From: Micael Karlberg <bmk@erlang.org> Date: Fri, 1 Apr 2022 15:27:56 +0200 Subject: [PATCH 5/5] [observer|runtime_tools] Fixed dialyzer issue OTP-18012 --- lib/runtime_tools/src/observer_backend.erl | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/runtime_tools/src/observer_backend.erl b/lib/runtime_tools/src/observer_backend.erl index 5af565394c..ccd2240a99 100644 --- a/lib/runtime_tools/src/observer_backend.erl +++ b/lib/runtime_tools/src/observer_backend.erl @@ -205,10 +205,7 @@ inet_port_extra({_,Type},Port) when Type =:= "udp_inet"; [{local_address,LAddr}]; {error, _} -> [] end ++ - case get_sock_opts(Port) of - {ok, Opts} -> [{options, Opts}]; - {error, _} -> [] - end, + [{options, get_sock_opts(Port)}], [{inet,Data}]; inet_port_extra(_,_) -> []. @@ -234,7 +231,7 @@ get_sock_opts(Port, Opts) -> %% that option and continue with the next. %% Better to have some options then none. get_sock_opts(_Port, [], Acc) -> - {ok, lists:reverse(Acc)}; + lists:reverse(Acc); get_sock_opts(Port, [Opt|Opts], Acc) -> case inet:getopts(Port, [Opt]) of {ok, [Res]} -> -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor