Skip to content

Commit

Permalink
Lint: Style/IfUnlessModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Jul 24, 2024
1 parent 417da45 commit 5faacd1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/faraday/adapter/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ def initialize(app = nil, opts = {}, &block)

def build_connection(env)
net_http_connection(env).tap do |http|
if env[:url].scheme == 'https' && env[:ssl]
configure_ssl(http, env[:ssl])
end
configure_ssl(http, env[:ssl]) if env[:url].scheme == 'https' && env[:ssl]
configure_request(http, env[:request])
end
end
Expand Down

0 comments on commit 5faacd1

Please sign in to comment.