diff options
author | Evan Read <eread@gitlab.com> | 2022-06-13 01:42:34 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2022-06-13 01:42:34 +0300 |
commit | 52f54b5e35923314fa96046c4c1a256344f46328 (patch) | |
tree | 04a2cb29139ca1b2c375fa7cc65dc8361929581b | |
parent | fef84c1eb52354395c42b8087aca5db67b890f2b (diff) |
Fix Style/RedundantInterpolation RuboCop offenseseread/fix-redundant-interpolation-rubocop-offenses
-rw-r--r-- | commands/frontend.rb | 2 | ||||
-rw-r--r-- | lib/task_helpers.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb index edc77ae3..551602fb 100644 --- a/commands/frontend.rb +++ b/commands/frontend.rb @@ -43,7 +43,7 @@ run do |opts, args, cmd| gl_ui_dest = 'public/assets/stylesheets/gitlab-ui' Dir.mkdir gl_ui_dest - Dir.children("#{gl_ui_src}").each do |filename| + Dir.children(gl_ui_src).each do |filename| puts "Copied #{gl_ui_src}/#{filename}" if filename.include?("css") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}")) end end diff --git a/lib/task_helpers.rb b/lib/task_helpers.rb index c4045655..db988756 100644 --- a/lib/task_helpers.rb +++ b/lib/task_helpers.rb @@ -40,7 +40,7 @@ def retrieve_branch(slug) # If the upstream product doesn't follow a stable branch scheme, set the # branch to the default else - "#{default_branch(products[slug].fetch('repo'))}" + default_branch(products[slug].fetch('repo')) end # If we're NOT on a gitlab-docs stable branch, fetch the BRANCH_* environment # variable, and if not assigned, set to the default branch. |