From ddba77816f1f3145ce6118b90474b30926f52ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Busqu=C3=A9?= Date: Wed, 9 Aug 2023 09:45:50 +0200 Subject: [PATCH] Fix offense after RuboCop 1.56 Rubocop 1.56 fixed a false negative for `Style/RedundantReturn` cop. See https://github.com/rubocop/rubocop/issues/12106 --- .../models/spree/preferences/statically_configurable_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/spec/models/spree/preferences/statically_configurable_spec.rb b/core/spec/models/spree/preferences/statically_configurable_spec.rb index 51a8819e538..e5aab61a9ff 100644 --- a/core/spec/models/spree/preferences/statically_configurable_spec.rb +++ b/core/spec/models/spree/preferences/statically_configurable_spec.rb @@ -14,7 +14,7 @@ def initialize end def [](key) - return @preferences if key == :preferences + @preferences if key == :preferences end end end