summaryrefslogtreecommitdiff
path: root/app/serializers/build_entity.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2017-06-02 20:32:37 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2017-06-02 20:32:37 +0200
commitb2f997e40520d9a4996f00f1c3ef5b9a8f1c7f80 (patch)
tree2ee66a9a6fee50db0aff020bcc76d8f558f4b8cf /app/serializers/build_entity.rb
parent0383b4822562005e20cdda80bca20a5fc11e9f8f (diff)
downloadgitlab-ce-b2f997e40520d9a4996f00f1c3ef5b9a8f1c7f80.tar.gz
Fix test failures
Diffstat (limited to 'app/serializers/build_entity.rb')
-rw-r--r--app/serializers/build_entity.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/serializers/build_entity.rb b/app/serializers/build_entity.rb
index d6651b9d227..c01efa9dd5c 100644
--- a/app/serializers/build_entity.rb
+++ b/app/serializers/build_entity.rb
@@ -8,10 +8,8 @@ class BuildEntity < Grape::Entity
path_to(:namespace_project_job, build)
end
- expose :build_failed_options, if: -> (*) { build.retryable? } do
- expose :retry_path do |build|
- path_to(:retry_namespace_project_job, build)
- end
+ expose :retry_path, if: -> (*) { build&.retryable? } do |build|
+ path_to(:retry_namespace_project_job, build)
end
expose :play_path, if: -> (*) { playable? } do |build|