From 11c5540165475c8e9d67ef96609f1a1e3bd252fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 10 Apr 2025 15:24:41 +0200 Subject: Make Dialyzer happy again --- src/cow_http2_machine.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cow_http2_machine.erl b/src/cow_http2_machine.erl index 794598a..26350b0 100644 --- a/src/cow_http2_machine.erl +++ b/src/cow_http2_machine.erl @@ -261,11 +261,11 @@ setting_from_opt(Settings, Opts, OptName, SettingName, Default) -> -spec terminate(State::http2_machine()) -> ok. terminate(#http2_machine{preface_timer=PTRef, settings_timer=STRef}) -> - case PTRef of + _ = case PTRef of undefined -> ok; _ -> erlang:cancel_timer(PTRef, [{async, true}, {info, false}]) end, - case STRef of + _ = case STRef of undefined -> ok; _ -> erlang:cancel_timer(STRef, [{async, true}, {info, false}]) end. -- cgit v1.2.3