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:
parent
240ac9eaa8
commit
75fcfb1416
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ module Timeout
|
|||
end
|
||||
|
||||
def expired?(now)
|
||||
now >= @deadline and !done?
|
||||
now >= @deadline
|
||||
end
|
||||
|
||||
def interrupt
|
||||
|
|
Loading…
Add table
Reference in a new issue