summaryrefslogtreecommitdiff
path: root/app/serializers/pipeline_serializer.rb
diff options
context:
space:
mode:
authorDosuken shinya <gitlab.shinyamaeda@gmail.com>2017-03-23 10:37:27 +0000
committerDosuken shinya <gitlab.shinyamaeda@gmail.com>2017-03-23 10:37:27 +0000
commitb3375a49647853f45df11b464bf7aa3e34af0f88 (patch)
treecb0c3af613116aa337faa076e90ad056697fab10 /app/serializers/pipeline_serializer.rb
parent1d75989551090ce1f21984cb2630e29493d9065b (diff)
downloadgitlab-ce-b3375a49647853f45df11b464bf7aa3e34af0f88.tar.gz
Add a blank line after a guard clause
Diffstat (limited to 'app/serializers/pipeline_serializer.rb')
-rw-r--r--app/serializers/pipeline_serializer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/serializers/pipeline_serializer.rb b/app/serializers/pipeline_serializer.rb
index 0094e3f4114..7829df9fada 100644
--- a/app/serializers/pipeline_serializer.rb
+++ b/app/serializers/pipeline_serializer.rb
@@ -25,6 +25,7 @@ class PipelineSerializer < BaseSerializer
def represent_status(resource)
return {} unless resource.present?
+
data = represent(resource, { only: [{ details: [:status] }] })
data.dig(:details, :status) || {}
end