Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2022-06-13 11:15:09 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2022-06-13 11:15:09 +0300
commite12d05173c4862b1896779744c1fc7df613f91fd (patch)
tree343b13940e8dba5a219bea92d75576bca6dc4ff2
parentc38ef53313663a21ed5e84a6159082370aadeab4 (diff)
parent52f54b5e35923314fa96046c4c1a256344f46328 (diff)
Merge branch 'eread/fix-redundant-interpolation-rubocop-offenses' into 'main'
Fix Style/RedundantInterpolation RuboCop offenses See merge request gitlab-org/gitlab-docs!2795
-rw-r--r--commands/frontend.rb2
-rw-r--r--lib/task_helpers.rb2
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.