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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-02-10 21:40:25 +0300
committerTakuya Noguchi <tak.noguchi.iridge@gmail.com>2017-03-07 01:54:13 +0300
commit2742fe6fd4f0a65bbd7f4d698ea009d6a6db63e7 (patch)
tree1126588231cf6e2142b0467dc3c073bb8b03d0c3 /app/helpers/builds_helper.rb
parent6902f9502b0df42fb071ca2fddc30fb21eb861e4 (diff)
Avoid calling Build#trace_with_state for performance
Diffstat (limited to 'app/helpers/builds_helper.rb')
-rw-r--r--app/helpers/builds_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/builds_helper.rb b/app/helpers/builds_helper.rb
index 5ac3e66bb1f..2fcb7a59fc3 100644
--- a/app/helpers/builds_helper.rb
+++ b/app/helpers/builds_helper.rb
@@ -12,7 +12,7 @@ module BuildsHelper
build_url: namespace_project_build_url(@project.namespace, @project, @build, :json),
build_status: @build.status,
build_stage: @build.stage,
- log_state: @build.trace_with_state[:state].to_s
+ log_state: ''
}
end