Skip to content

Commit 879f3b9

Browse files
committed
Suppress a RuboCop offense
This PR suppresses the following RuboCop offense: ```console $ bundle exec rubocop -a (snip) Offenses: lib/rubocop/cop/rails/save_bang.rb:247:11: C: [Corrected] InternalAffairs/OperatorKeyword: Use node.operator_keyword?. node.or_type? || node.and_type? || single_negative?(node) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ```
1 parent ad3287a commit 879f3b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rubocop/cop/rails/save_bang.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def in_condition_or_compound_boolean?(node)
244244
end
245245

246246
def operator_or_single_negative?(node)
247-
node.or_type? || node.and_type? || single_negative?(node)
247+
node.operator_keyword? || single_negative?(node)
248248
end
249249

250250
def conditional?(parent)

0 commit comments

Comments
 (0)