Skip to content

Commit 728987e

Browse files
committed
check operator of assoc_node
1 parent a91f28a commit 728987e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ruby/new_2_2_hash_syntax.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# {:foo => 'bar'} => {foo: 'bar'}
3030
# {:'foo-x' => 'bar'} => {'foo-x': 'bar'}
3131
# {:"foo-#{suffix}" 'bar'} => {"foo-#{suffix}": 'bar'}
32-
find_node '.hash_node > .assoc_node' do
32+
find_node '.hash_node > .assoc_node[operator!=nil]' do
3333
case node.key.type
3434
when :symbol_node
3535
case node.key.to_source

0 commit comments

Comments
 (0)