lib/rubocop/cop/style/empty_literal.rb in rubocop-1.66.0 vs lib/rubocop/cop/style/empty_literal.rb in rubocop-1.66.1
- old
+ new
@@ -32,10 +32,10 @@
# @!method array_node(node)
def_node_matcher :array_node, '(send (const {nil? cbase} :Array) :new (array)?)'
# @!method hash_node(node)
- def_node_matcher :hash_node, '(send (const {nil? cbase} :Hash) :new (array)?)'
+ def_node_matcher :hash_node, '(send (const {nil? cbase} :Hash) :new)'
# @!method str_node(node)
def_node_matcher :str_node, '(send (const {nil? cbase} :String) :new)'
# @!method array_with_block(node)