chore: RuboCop lint Lint/UselessAssignment

This commit is contained in:
Olle Jonsson 2019-02-27 20:06:25 +01:00
parent 769efe6af6
commit 9e25ee6adc
2 changed files with 2 additions and 14 deletions

View File

@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-02-27 08:43:56 +0100 using RuboCop version 0.65.0.
# on 2019-02-27 20:09:01 +0100 using RuboCop version 0.65.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
@ -16,13 +16,6 @@ Lint/ReturnInVoidContext:
Exclude:
- 'lib/faraday/options/env.rb'
# Offense count: 2
# Cop supports --auto-correct.
Lint/StringConversionInInterpolation:
Exclude:
- 'lib/faraday/response/logger.rb'
- 'test/live_server.rb'
# Offense count: 2
# Cop supports --auto-correct.
Lint/UnneededRequireStatement:
@ -51,11 +44,6 @@ Lint/UnusedMethodArgument:
- 'script/generate_certs'
- 'spec/faraday/response/middleware_spec.rb'
# Offense count: 1
Lint/UselessAssignment:
Exclude:
- 'lib/faraday/adapter/net_http.rb'
# Offense count: 1
# Configuration parameters: CheckForMethodsWithNoSideEffects.
Lint/Void:

View File

@ -98,7 +98,7 @@ module Faraday
http_response.body = nil
http_response
else
http_response = perform_request_with_wrapped_block(http, env)
perform_request_with_wrapped_block(http, env)
end
end