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}),
|
TimerRef = erlang:send_after(Timeout, self(), {timeout, Pid}),
|
||||||
receive
|
receive
|
||||||
{Pid, Result} ->
|
{Pid, Result} ->
|
||||||
erlang:cancel_timer(TimerRef),
|
_ = erlang:cancel_timer(TimerRef),
|
||||||
{ok, Result};
|
{ok, Result};
|
||||||
{timeout, Pid} ->
|
{timeout, Pid} ->
|
||||||
exit(Pid, kill),
|
exit(Pid, kill),
|
||||||
|
|
Loading…
Reference in New Issue