ruby-changes:71870
From: Benoit <ko1@a...>
Date: Thu, 19 May 2022 07:19:55 +0900 (JST)
Subject: [ruby-changes:71870] 75fcfb1416 (master): [ruby/timeout] Remove redundant done? check
https://git.ruby-lang.org/ruby.git/commit/?id=75fcfb1416 From 75fcfb14169db9de7842eba0201b86a37e58a074 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Sun, 15 May 2022 13:51:57 +0200 Subject: [ruby/timeout] Remove redundant done? check * It's already checked inside #interrupt. https://github.com/ruby/timeout/commit/5f43254f81 --- lib/timeout.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 https://github.com/ruby/ruby/blob/trunk/lib/timeout.rb#L77 end def expired?(now) - now >= @deadline and !done? + now >= @deadline end def interrupt -- cgit v1.2.1 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/