Skip to content

Commit 4bd417b

Browse files
shuuuuunrafaelfranca
authored andcommitted
Fix syntax for old ruby
1 parent 0029b0d commit 4bd417b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/thor/core_ext/hash_with_indifferent_access.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def fetch(key, *args)
3939
end
4040

4141
def slice(*keys)
42-
super(*keys.map{ convert_key(_1) })
42+
super(*keys.map{ |key| convert_key(key) })
4343
end
4444

4545
def key?(key)

0 commit comments

Comments
 (0)