rubocops/options: refactor unless ==.
This commit is contained in:
parent
20998ed6e3
commit
3ded55aec2
@ -39,7 +39,7 @@ module RuboCop
|
||||
" Migrate '--#{option}' with `deprecated_option`."
|
||||
end
|
||||
|
||||
return unless formula_tap == "homebrew-core"
|
||||
return if formula_tap != "homebrew-core"
|
||||
|
||||
problem DEP_OPTION if method_called_ever?(body_node, :deprecated_option)
|
||||
problem OPTION if method_called_ever?(body_node, :option)
|
||||
|
Loading…
x
Reference in New Issue
Block a user