fix: make static_check happy

This commit is contained in:
JimMoen 2024-07-31 17:17:13 +08:00
parent a246551914
commit c658cfe269
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -1539,7 +1539,7 @@ run_with_timeout(Module, Function, Args, Timeout) ->
TimerRef = erlang:send_after(Timeout, self(), {timeout, Pid}),
receive
{Pid, Result} ->
erlang:cancel_timer(TimerRef),
_ = erlang:cancel_timer(TimerRef),
{ok, Result};
{timeout, Pid} ->
exit(Pid, kill),