summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Oberhuber <lukas.oberhuber@simplybusiness.co.uk>2020-06-06 23:38:38 +0100
committerLukas Oberhuber <lukas.oberhuber@simplybusiness.co.uk>2020-06-06 23:38:38 +0100
commitd9f84630c3ccb570166bce7d4ab93207fc2fba2b (patch)
tree8043e1b4b3fa34da72374b53fc0927ec34998bab
parent19de40a029ded49630b643e77f0f252178496abd (diff)
downloadrack-d9f84630c3ccb570166bce7d4ab93207fc2fba2b.tar.gz
Simplify fetch
-rw-r--r--lib/rack/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 58940b6d..b8215d92 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -474,8 +474,8 @@ module Rack
alias_method :member?, :include?
alias_method :key?, :include?
- def fetch(*args)
- super(@names[args.first.downcase] || args.first, *(args.drop(1)))
+ def fetch(k, *args)
+ super(@names[k.downcase] || k, *args)
end
def merge!(other)