1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/timeout] Remove redundant done? check

* It's already checked inside #interrupt.

https://github.com/ruby/timeout/commit/5f43254f81
This commit is contained in:
Benoit Daloze 2022-05-15 13:51:57 +02:00 committed by git
parent 240ac9eaa8
commit 75fcfb1416

View file

@ -77,7 +77,7 @@ module Timeout
end
def expired?(now)
now >= @deadline and !done?
now >= @deadline
end
def interrupt