We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffdfdd0 commit c32a07fCopy full SHA for c32a07f
1 file changed
lib/mongo/deprecations.rb
@@ -81,7 +81,7 @@ def warned_features(reset: false)
81
# @return [ true | false ] If a warning has already been issued.
82
def _warned?(feature, prefix: false)
83
if prefix
84
- warned_features.any? { |f| feature.to_s.start_with?(f) }
+ warned_features.any? { |f| f.to_s.start_with?(feature) }
85
else
86
warned_features.include?(feature.to_s)
87
end
0 commit comments