summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2022-05-15 13:51:57 +0200
committergit <svn-admin@ruby-lang.org>2022-05-19 07:19:42 +0900
commit75fcfb14169db9de7842eba0201b86a37e58a074 (patch)
tree837c0f45df91984e2659db027f0d06ea6f2dd0d4 /lib
parent240ac9eaa8d3dab8f7dd5f29f67c7ee8d4d05d86 (diff)
downloadruby-75fcfb14169db9de7842eba0201b86a37e58a074.tar.gz
[ruby/timeout] Remove redundant done? check
* It's already checked inside #interrupt. https://github.com/ruby/timeout/commit/5f43254f81
Diffstat (limited to 'lib')
-rw-r--r--lib/timeout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 4659ec3279..6e7adbd259 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -77,7 +77,7 @@ module Timeout
end
def expired?(now)
- now >= @deadline and !done?
+ now >= @deadline
end
def interrupt