diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-18 12:59:37 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-18 12:59:37 +0100 |
commit | fb3e23b06da10a90149aba0e2dbc3bca04286b0e (patch) | |
tree | 48b56085d0792225c41c6076556879bb863bc478 /lib/api/project_snippets.rb | |
parent | 35d280450260bad53022b6022ece7d31b5f4bd1f (diff) | |
parent | 9c2f6e04cf5d2eb89d0ec68e8ace87b3804e9ae5 (diff) | |
download | gitlab-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.rb | 2 |
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 |