summaryrefslogtreecommitdiff
path: root/lib/api/project_snippets.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-18 12:59:37 +0100
committerPhil Hughes <me@iamphill.com>2018-04-18 12:59:37 +0100
commitfb3e23b06da10a90149aba0e2dbc3bca04286b0e (patch)
tree48b56085d0792225c41c6076556879bb863bc478 /lib/api/project_snippets.rb
parent35d280450260bad53022b6022ece7d31b5f4bd1f (diff)
parent9c2f6e04cf5d2eb89d0ec68e8ace87b3804e9ae5 (diff)
downloadgitlab-ce-fb3e23b06da10a90149aba0e2dbc3bca04286b0e.tar.gz
Merge branch 'master' into ide-staged-changes
Diffstat (limited to 'lib/api/project_snippets.rb')
-rw-r--r--lib/api/project_snippets.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/project_snippets.rb b/lib/api/project_snippets.rb
index 39c03c40bab..1de5551fee9 100644
--- a/lib/api/project_snippets.rb
+++ b/lib/api/project_snippets.rb
@@ -145,7 +145,7 @@ module API
snippet = Snippet.find_by!(id: params[:snippet_id], project_id: params[:id])
- return not_found!('UserAgentDetail') unless snippet.user_agent_detail
+ break not_found!('UserAgentDetail') unless snippet.user_agent_detail
present snippet.user_agent_detail, with: Entities::UserAgentDetail
end