Maintenance: Activated rubocop rule Style/RescueStandardError.
This commit is contained in:
parent
f7e82bb3f9
commit
0eedc58558
3 changed files with 6 additions and 7 deletions
|
@ -68,6 +68,11 @@ Style/TrailingCommaInArguments:
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
Style/RescueStandardError:
|
||||||
|
Description: 'Avoid rescuing without specifying an error class.'
|
||||||
|
Enabled: true
|
||||||
|
EnforcedStyle: implicit
|
||||||
|
|
||||||
Layout/SpaceInsideParens:
|
Layout/SpaceInsideParens:
|
||||||
Description: 'No spaces after ( or before ).'
|
Description: 'No spaces after ( or before ).'
|
||||||
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-spaces-braces'
|
||||||
|
|
|
@ -83,9 +83,3 @@ Rails/HasManyOrHasOneDependent:
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# Offense count: 172
|
|
||||||
# Cop supports --auto-correct.
|
|
||||||
# Configuration parameters: EnforcedStyle.
|
|
||||||
# SupportedStyles: implicit, explicit
|
|
||||||
Style/RescueStandardError:
|
|
||||||
Enabled: false
|
|
||||||
|
|
|
@ -347,7 +347,7 @@ get instance of channel driver
|
||||||
options[:outbound][:options][:password] = result[:access_token]
|
options[:outbound][:options][:password] = result[:access_token]
|
||||||
|
|
||||||
save!
|
save!
|
||||||
rescue StandardError => e
|
rescue => e
|
||||||
logger.error e
|
logger.error e
|
||||||
raise "Failed to refresh XOAUTH2 access_token of provider '#{options[:auth][:provider]}'! #{e.inspect}"
|
raise "Failed to refresh XOAUTH2 access_token of provider '#{options[:auth][:provider]}'! #{e.inspect}"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue