[ruby/timeout] Remove redundant done? check
* It's already checked inside #interrupt. https://github.com/ruby/timeout/commit/5f43254f81
This commit is contained in:
parent
240ac9eaa8
commit
75fcfb1416
@ -77,7 +77,7 @@ module Timeout
|
|||||||
end
|
end
|
||||||
|
|
||||||
def expired?(now)
|
def expired?(now)
|
||||||
now >= @deadline and !done?
|
now >= @deadline
|
||||||
end
|
end
|
||||||
|
|
||||||
def interrupt
|
def interrupt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user