Skip to content

Commit

Permalink
Fixed RuboCop Lint/SymbolConversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
bkuhlmann committed Dec 2, 2023
1 parent 1b5c29d commit a90e55a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/refinements/hashes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def fetch_value(key, *default, &) = fetch(key, *default, &) || default.first

def flatten_keys prefix: nil, delimiter: "_"
reduce({}) do |accumulator, (key, value)|
flat_key = prefix ? "#{prefix}#{delimiter}#{key}".to_sym : key
flat_key = prefix ? :"#{prefix}#{delimiter}#{key}" : key

next accumulator.merge flat_key => value unless value in Hash

Expand Down

0 comments on commit a90e55a

Please sign in to comment.