Maintenance: Applied Zammad/PreferNegatedIfOverUnless on custom cops.
This commit is contained in:
parent
52f5605310
commit
0918e4f53a
2 changed files with 2 additions and 2 deletions
|
@ -65,7 +65,7 @@ module RuboCop
|
|||
end
|
||||
|
||||
def check_node(node)
|
||||
return unless node
|
||||
return if !node
|
||||
|
||||
if keyword_bang?(node)
|
||||
receiver, = *node
|
||||
|
|
|
@ -20,7 +20,7 @@ module RuboCop
|
|||
'negative conditions.'.freeze
|
||||
|
||||
def on_if(node)
|
||||
return unless node.unless?
|
||||
return if !node.unless?
|
||||
|
||||
add_offense(node, message: MSG)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue