From 6cfe0d1e9aeddb08bdb7b12bf808576d8ca0e668 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Wed, 6 Nov 2024 16:55:56 +0100 Subject: [PATCH] Fix a Dialyzer warning --- src/gun.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gun.erl b/src/gun.erl index 1f72555e..8cf5a501 100644 --- a/src/gun.erl +++ b/src/gun.erl @@ -477,7 +477,7 @@ check_protocols_opt(Protocols) -> end. consider_tracing(ServerPid, #{trace := true}) -> - dbg:tracer(), + _ = dbg:tracer(), _ = dbg:tpl(gun, [{'_', [], [{return_trace}]}]), _ = dbg:tpl(gun_http, [{'_', [], [{return_trace}]}]), _ = dbg:tpl(gun_http2, [{'_', [], [{return_trace}]}]), @@ -485,7 +485,8 @@ consider_tracing(ServerPid, #{trace := true}) -> _ = dbg:tpl(gun_raw, [{'_', [], [{return_trace}]}]), _ = dbg:tpl(gun_socks, [{'_', [], [{return_trace}]}]), _ = dbg:tpl(gun_ws, [{'_', [], [{return_trace}]}]), - dbg:p(ServerPid, all); + _ = dbg:p(ServerPid, all), + ok; consider_tracing(_, _) -> ok.