Improve RuboCop rules (compatibility to Code Climate) (#3636)
08f8de84eb/Gemfile.lock (L38)
Code Climate is using RuboCop v0.46.0.
Change several rules to maintain compatibility.
This commit is contained in:
parent
7d2b4186c3
commit
0a0b9a271a
12 changed files with 33 additions and 14 deletions
|
@ -16,7 +16,7 @@ class FetchAtomService < BaseService
|
|||
|
||||
return nil if response.code != 200
|
||||
return [url, fetch(url)] if response.mime_type == 'application/atom+xml'
|
||||
return process_headers(url, response) unless response['Link'].blank?
|
||||
return process_headers(url, response) if response['Link'].present?
|
||||
process_html(fetch(url))
|
||||
rescue OpenSSL::SSL::SSLError => e
|
||||
Rails.logger.debug "SSL error: #{e}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue