Skip to content

Commit

Permalink
Fix syntax for old ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
shuuuuun authored and rafaelfranca committed May 15, 2023
1 parent 0029b0d commit 4bd417b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/thor/core_ext/hash_with_indifferent_access.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def fetch(key, *args)
end

def slice(*keys)
super(*keys.map{ convert_key(_1) })
super(*keys.map{ |key| convert_key(key) })
end

def key?(key)
Expand Down

0 comments on commit 4bd417b

Please sign in to comment.