summaryrefslogtreecommitdiff
path: root/lib/api/helpers.rb
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2018-01-11 12:41:48 -0600
committerClement Ho <ClemMakesApps@gmail.com>2018-01-11 12:41:48 -0600
commit8a49e97bebb57eb763533b32e968547f37fa659e (patch)
tree0475f802be1875bcfb25f664d9448e26ccf05e5a /lib/api/helpers.rb
parentf716049998ec41d8f26caedd65ebd1a247179926 (diff)
parent685780d5b4606dce440ba8121e774fd6e7884ea2 (diff)
downloadgitlab-ce-8a49e97bebb57eb763533b32e968547f37fa659e.tar.gz
Merge branch 'master' into projects-l
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r--lib/api/helpers.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index d6ce368efd5..6134ad2bfc7 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -26,6 +26,7 @@ module API
check_unmodified_since!(last_updated)
status 204
+
if block_given?
yield resource
else