summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-13 03:06:05 +0900
committerShinya Maeda <gitlab.shinyamaeda@gmail.com>2017-05-30 23:55:08 +0900
commit97bf2401991ab2e9cea956dfb7c9630e2a185683 (patch)
tree98786d50c93107cd67d7e33710c6398b0f1306b4
parentbd7d7759d6e7f98d2d306495a8de5be44590b490 (diff)
downloadgitlab-ce-97bf2401991ab2e9cea956dfb7c9630e2a185683.tar.gz
Remove if from last_pipeline in entity
-rw-r--r--lib/api/entities.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb
index 1f1942b2ec1..b2bc0a17142 100644
--- a/lib/api/entities.rb
+++ b/lib/api/entities.rb
@@ -690,7 +690,7 @@ module API
expose :id
expose :description, :ref, :cron, :cron_timezone, :next_run_at, :active
expose :created_at, :updated_at, :deleted_at
- expose :last_pipeline, using: Entities::Pipeline, if: -> (pipeline_schedule, opts) { pipeline_schedule.last_pipeline.present? }
+ expose :last_pipeline, using: Entities::Pipeline
expose :owner, using: Entities::UserBasic
end