rubocops/options: refactor unless ==.

This commit is contained in:
Mike McQuaid 2020-04-11 14:20:07 +01:00
parent 20998ed6e3
commit 3ded55aec2
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70

View File

@ -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)