Skip to content

Commit

Permalink
Lint: Lint/RedundantSafeNavigation
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Aug 17, 2021
1 parent fa26357 commit abe78b5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@ Lint/EmptyBlock:
- 'spec/faraday/rack_builder_spec.rb'
- 'spec/faraday/response_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowedMethods.
# AllowedMethods: instance_of?, kind_of?, is_a?, eql?, respond_to?, equal?
Lint/RedundantSafeNavigation:
Exclude:
- 'lib/faraday/connection.rb'

# Offense count: 16
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ def proxy_for_request(url)
end

def support_parallel?(adapter)
adapter&.respond_to?(:supports_parallel?) && adapter&.supports_parallel?
adapter.respond_to?(:supports_parallel?) && adapter&.supports_parallel?
end
end
end

0 comments on commit abe78b5

Please sign in to comment.