From 75fcfb14169db9de7842eba0201b86a37e58a074 Mon Sep 17 00:00:00 2001 From: Benoit Daloze 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(-) (limited to 'lib/timeout.rb') 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 -- cgit v1.2.3