fix: make static_check happy
This commit is contained in:
parent
a246551914
commit
c658cfe269
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue