lib/evil/client/middleware/merge_security.rb in evil-client-0.3.2 vs lib/evil/client/middleware/merge_security.rb in evil-client-0.3.3
- old
+ new
@@ -7,10 +7,10 @@
private
def build(env)
env.dup.tap do |hash|
security = hash.delete(:security).to_h
- %i(headers body query).each do |key|
+ %i[headers body query].each do |key|
next unless security[key]
hash[key] ||= {}
hash[key].update security[key]
end
end