summaryrefslogtreecommitdiff
path: root/app/helpers/builds_helper.rb
diff options
context:
space:
mode:
authorgfyoung <gfyoung17@gmail.com>2018-08-18 04:19:57 -0700
committergfyoung <gfyoung17@gmail.com>2018-09-06 17:33:46 -0700
commit1993a4449a5be44acfa5a9e1a94842e05da5edd5 (patch)
tree80a38bd0b427a5baf7ca36a3a71f8eb75c9d912f /app/helpers/builds_helper.rb
parent07d5ee361a438fcfff28fe184bbec2aa98ce5d14 (diff)
downloadgitlab-ce-1993a4449a5be44acfa5a9e1a94842e05da5edd5.tar.gz
Enable frozen string for app/helpers/**/*.rb
Partially addresses #47424.
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r--app/helpers/builds_helper.rb10
1 files changed, 6 insertions, 4 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
index 4ec63fdaffc..3c8caec3fe5 100644
--- a/app/helpers/builds_helper.rb
+++ b/app/helpers/builds_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
module BuildsHelper
def build_summary(build, skip: false)
if build.has_trace?
@@ -12,10 +14,10 @@ module BuildsHelper
end
def sidebar_build_class(build, current_build)
- build_class = ''
- build_class += ' active' if build.id === current_build.id
- build_class += ' retried' if build.retried?
- build_class
+ build_class = []
+ build_class << 'active' if build.id === current_build.id
+ build_class << 'retried' if build.retried?
+ build_class.join(' ')
end
def javascript_build_options