Remove useless assignments

Rubocop highlighted this. The todo list actually contains these files
but somehow the cop still runs and reports these as violations.
This commit is contained in:
Maikel Linke
2021-12-06 16:36:38 +11:00
parent 64d25b2999
commit 207cc8908a
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ module Spree
def pretty_name
ancestor_chain = ancestors.inject("") do |name, ancestor|
name += "#{ancestor.name} -> "
name + "#{ancestor.name} -> "
end
ancestor_chain + name.to_s
end

View File

@@ -66,7 +66,7 @@ module Spree
# The layout to render can be set inside Spree configuration with the +:layout+ option.
# Default layout is: +app/views/spree/layouts/spree_application+
def get_layout
layout ||= Spree::Config[:layout]
Spree::Config[:layout]
end
end
end