Skip to content

Commit

Permalink
chore: RuboCop trailing commas fixed (#859)
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Feb 20, 2019
1 parent b585462 commit f98c3e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
18 changes: 1 addition & 17 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2019-02-20 22:05:38 +0100 using RuboCop version 0.65.0.
# on 2019-02-20 22:19:54 +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
Expand Down Expand Up @@ -1120,22 +1120,6 @@ Style/TernaryParentheses:
- 'lib/faraday/options.rb'
- 'lib/faraday/upload_io.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
Exclude:
- 'lib/faraday/adapter/net_http.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInHashLiteral:
Exclude:
- 'lib/faraday/adapter/em_http.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/adapter/em_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def connection_config(env)
def request_config(env)
options = {
:body => read_body(env),
:head => env[:request_headers],
:head => env[:request_headers]
# :keepalive => true,
# :file => 'path/to/file', # stream data off disk
}
Expand Down
2 changes: 1 addition & 1 deletion lib/faraday/adapter/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class NetHttp < Faraday::Adapter
Net::HTTPHeaderSyntaxError,
Net::ProtocolError,
SocketError,
Zlib::GzipFile::Error,
Zlib::GzipFile::Error
]

NET_HTTP_EXCEPTIONS << OpenSSL::SSL::SSLError if defined?(OpenSSL)
Expand Down

0 comments on commit f98c3e9

Please sign in to comment.