summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-21 21:15:20 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-03-23 17:11:49 +0900
commit6dcd2d591fa00be027b92e8c0e6b3b129921f4fa (patch)
tree2216aa773af1641875c9acb2bd2501ccd8f0d2e3 /app/serializers
parentc4441c623e7c33839e682819db269a7ee4cb8faa (diff)
downloadgitlab-ce-6dcd2d591fa00be027b92e8c0e6b3b129921f4fa.tar.gz
fetch to dig
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/pipeline_serializer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb
index 384e881da06..412390737cb 100644
--- a/app/serializers/pipeline_serializer.rb
+++ b/app/serializers/pipeline_serializer.rb
@@ -25,6 +25,6 @@ class PipelineSerializer < BaseSerializer
def represent_status(resource)
data = represent(resource, { only: [{ details: [:status] }] })
- data.fetch(:details, {}).fetch(:status, {})
+ data.dig(:details, :status) || {}
end
end