From 7f9195d96b106afcac7575af7b08fa7ef97ffbae Mon Sep 17 00:00:00 2001 From: Oleg Pudeyev Date: Fri, 16 Feb 2024 13:45:24 -0500 Subject: [PATCH] are you smart? --- lib/datadog/core/remote/component.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datadog/core/remote/component.rb b/lib/datadog/core/remote/component.rb index aff4a4691d3..104bb45c6b1 100644 --- a/lib/datadog/core/remote/component.rb +++ b/lib/datadog/core/remote/component.rb @@ -151,7 +151,7 @@ def wait_once(timeout = nil) ].compact.min _timeout = deadline ? deadline - now : nil - return :expired if _timeout && _timeout <= 0 + return :expired if !_timeout.nil? && _timeout <= 0 # - starting with Ruby 3.2, ConditionVariable#wait returns nil on # timeout and an integer otherwise