Skip to content

Commit

Permalink
call key.to_s once instead of multiple times to save when it's a symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalpickles committed Aug 16, 2023
1 parent cbf9ac9 commit 535feb8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bundler/lib/bundler/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,8 @@ def set_key(raw_key, value, hash, file)
end

def converted_value(value, key)
key = key.to_s

if is_array(key)
to_array(value)
elsif value.nil?
Expand Down

0 comments on commit 535feb8

Please sign in to comment.