summaryrefslogtreecommitdiff
path: root/lib/api/internal.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 14:58:20 -0800
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-02-18 14:58:20 -0800
commit558dd811971776fc4a921b79296f5d792b245686 (patch)
tree03276f73e69391fe8f9377f7d672cb2dd8ea710e /lib/api/internal.rb
parent833d4dddf2fc3a933a28b4deb60ef6a3dc7eb0fb (diff)
downloadgitlab-ce-558dd811971776fc4a921b79296f5d792b245686.tar.gz
Improve broadcast message API
Diffstat (limited to 'lib/api/internal.rb')
-rw-r--r--lib/api/internal.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/api/internal.rb b/lib/api/internal.rb
index 04ff049989b..ba3fe619b92 100644
--- a/lib/api/internal.rb
+++ b/lib/api/internal.rb
@@ -73,6 +73,8 @@ module API
get "/broadcast_message" do
if message = BroadcastMessage.current
present message, with: Entities::BroadcastMessage
+ else
+ {}
end
end
end