lib/rubocop/cop/mixin/def_node.rb in rubocop-0.48.0 vs lib/rubocop/cop/mixin/def_node.rb in rubocop-0.48.1

- old
+ new

@@ -4,10 +4,10 @@ module Cop # Common functionality for checking if nodes. module DefNode extend NodePattern::Macros - NON_PUBLIC_MODIFIERS = %w(private protected).freeze + NON_PUBLIC_MODIFIERS = %w[private protected].freeze def non_public?(node) non_public_modifier?(node.parent) || preceding_non_public_modifier?(node) end