lib/rubocop/cop/style/numeric_predicate.rb in rbhint-0.85.1.rc2 vs lib/rubocop/cop/style/numeric_predicate.rb in rbhint-0.87.1.rc1

- old
+ new

@@ -52,17 +52,16 @@ 'positive?' => '>', 'negative?' => '<' }.freeze def on_send(node) + numeric, replacement = check(node) + return unless numeric + return if ignored_method?(node.method_name) || node.each_ancestor(:send, :block).any? do |ancestor| ignored_method?(ancestor.method_name) end - - numeric, replacement = check(node) - - return unless numeric add_offense(node, message: format(MSG, prefer: replacement, current: node.source))