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:
authorEvan Read <eread@gitlab.com>2022-06-10 04:15:49 +0300
committerEvan Read <eread@gitlab.com>2022-06-10 04:24:05 +0300
commit95ecd4954ea689149d9a610aca5986bb500339b6 (patch)
tree270b010fd5bc210239b752d13d77511bd27c0285 /commands
parentaf999a0769cb4f3e405b5a212ce5cadbdc31c5e6 (diff)
Fix Style/IfUnlessModifier RuboCop offenseseread/fix-if-unless-modifier-rubocop-offenses
Diffstat (limited to 'commands')
-rw-r--r--commands/frontend.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/commands/frontend.rb b/commands/frontend.rb
index 0b669ef3..edc77ae3 100644
--- a/commands/frontend.rb
+++ b/commands/frontend.rb
@@ -44,8 +44,6 @@ run do |opts, args, cmd|
Dir.mkdir gl_ui_dest
Dir.children("#{gl_ui_src}").each do |filename|
- if filename.include?("css") && File.write("#{gl_ui_dest}/#{filename}", File.read("#{root}/#{gl_ui_src}/#{filename}"))
- puts "Copied #{gl_ui_src}/#{filename}"
- end
+ 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