lib/github_api/normalizer.rb in github_api-0.16.0 vs lib/github_api/normalizer.rb in github_api-0.17.0

- old
+ new

@@ -1,12 +1,12 @@ +# frozen_string_literal: true # encoding: utf-8 module Github - # Deals with normalazing client supplied parameter keys. + # Normalize client-supplied parameter keys. module Normalizer # Turns any keys from nested hashes including nested arrays into strings - # def normalize!(params) case params when Hash params.keys.each do |k| params[k.to_s] = params.delete(k) @@ -14,12 +14,10 @@ end when Array params.map! do |el| normalize!(el) end - else - params.to_s end - return params + params end end # Normalizer end # Github