diff options
author | Benoit Daloze <[email protected]> | 2022-05-15 13:51:57 +0200 |
---|---|---|
committer | git <[email protected]> | 2022-05-19 07:19:42 +0900 |
commit | 75fcfb14169db9de7842eba0201b86a37e58a074 (patch) | |
tree | 837c0f45df91984e2659db027f0d06ea6f2dd0d4 /lib/timeout.rb | |
parent | 240ac9eaa8d3dab8f7dd5f29f67c7ee8d4d05d86 (diff) |
[ruby/timeout] Remove redundant done? check
* It's already checked inside #interrupt.
https://github.com/ruby/timeout/commit/5f43254f81
Diffstat (limited to 'lib/timeout.rb')
-rw-r--r-- | lib/timeout.rb | 2 |
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 |