Skip to content

Commit

Permalink
Fix Rubocop errors
Browse files Browse the repository at this point in the history
  • Loading branch information
iMacTia authored and olleolleolle committed May 24, 2024
1 parent c9cc1b3 commit 7dc6941
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/faraday/adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def inherited(subclass)
self.supports_parallel = false

def initialize(_app = nil, opts = {}, &block)
@app = ->(env) { env.response }
@app = lambda(&:response)
@connection_options = opts
@config_block = block
end
Expand Down
4 changes: 2 additions & 2 deletions lib/faraday/utils/headers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ def []=(key, val)
super(key, val)
end

def fetch(key, *args, &block)
def fetch(key, ...)
key = KeyMap[key]
key = @names.fetch(key.downcase, key)
super(key, *args, &block)
super(key, ...)
end

def delete(key)
Expand Down

0 comments on commit 7dc6941

Please sign in to comment.