Style/RedundantParentheses

This commit is contained in:
David Cook
2024-01-10 09:35:38 +11:00
parent 18c2b2512b
commit 7e00dbfd67
2 changed files with 1 additions and 7 deletions

View File

@@ -944,12 +944,6 @@ Style/RedundantInterpolation:
- 'lib/tasks/karma.rake'
- 'spec/base_spec_helper.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
Style/RedundantParentheses:
Exclude:
- 'app/models/spree/app_configuration.rb'
# Offense count: 1
# This cop supports safe autocorrection (--autocorrect).
# Configuration parameters: AllowMultipleReturnValues.

View File

@@ -135,7 +135,7 @@ module Spree
# Enable cache
preference :enable_products_cache?, :boolean,
default: (Rails.env.production? || Rails.env.staging?)
default: Rails.env.production? || Rails.env.staging?
# Available units
preference :available_units, :string, default: "g,kg,T,mL,L,kL"