Skip to content

Commit

Permalink
are you smart?
Browse files Browse the repository at this point in the history
  • Loading branch information
p committed Feb 16, 2024
1 parent f1f889d commit 7f9195d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/datadog/core/remote/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7f9195d

Please sign in to comment.