Skip to content
Snippets Groups Projects
Commit 8789464c authored by Oswaldo Ferreira's avatar Oswaldo Ferreira
Browse files

Remove unnecessary begin/end from error rescuing

parent 0d5290a8
No related branches found
No related tags found
3 merge requests!2122Merge RC2 into 9.3 (actually-stable),!2106Add RC2 changes to 9-3-stable-ee,!1719Related issues [BE]
......@@ -9,13 +9,11 @@ def execute
return error('No Issue found for given reference', 401)
end
begin
create_related_issues!
rescue => exception
return error(exception.message, 401)
end
create_related_issues!
success_message
rescue => exception
error(exception.message, 401)
end
private
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment