Skip to content

Commit c32a07f

Browse files
committed
reverse the prefix-match logic so it actually works
1 parent ffdfdd0 commit c32a07f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mongo/deprecations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def warned_features(reset: false)
8181
# @return [ true | false ] If a warning has already been issued.
8282
def _warned?(feature, prefix: false)
8383
if prefix
84-
warned_features.any? { |f| feature.to_s.start_with?(f) }
84+
warned_features.any? { |f| f.to_s.start_with?(feature) }
8585
else
8686
warned_features.include?(feature.to_s)
8787
end

0 commit comments

Comments
 (0)