Skip to content

Commit 5658a08

Browse files
committed
🐛 Fix ruby 2.7 compatibility for backport
1 parent 891975e commit 5658a08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/net/imap/config.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def defaults_hash
463463
# 0.6r.to_f == 0.6 # => true
464464
# 0.6 .to_r == 0.6r # => false
465465
version_defaults.to_a.each do |k, v|
466-
next unless k in Rational
466+
next unless k.is_a? Rational
467467
version_defaults[k.to_f] = v
468468
end
469469

0 commit comments

Comments
 (0)