Fix Style/IfUnlessModifier
This commit is contained in:
parent
df42beecab
commit
4b3fbab08a
|
@ -70,13 +70,6 @@ Style/FirstParameterIndentation:
|
|||
Exclude:
|
||||
- 'lib/paper_trail/serializers/json.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
# Configuration parameters: MaxLineLength.
|
||||
Style/IfUnlessModifier:
|
||||
Exclude:
|
||||
- 'test/dummy/config/application.rb'
|
||||
|
||||
# Offense count: 4
|
||||
# Cop supports --auto-correct.
|
||||
Style/Lambda:
|
||||
|
|
|
@ -54,9 +54,7 @@ module Dummy
|
|||
end
|
||||
|
||||
# `config.assets` is a `NoMethodError` in rails 5.
|
||||
if config.respond_to?(:assets)
|
||||
config.assets.enabled = false
|
||||
end
|
||||
config.assets.enabled = false if config.respond_to?(:assets)
|
||||
|
||||
# Version of your assets, change this if you want to expire all your assets
|
||||
# config.assets.version = '1.0'
|
||||
|
|
Loading…
Reference in New Issue