Commit 8789464c authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove unnecessary begin/end from error rescuing

parent 0d5290a8
......@@ -9,13 +9,11 @@ module RelatedIssues
return error('No Issue found for given reference', 401)
end
begin
create_related_issues!
rescue => exception
return error(exception.message, 401)
end
success_message
rescue => exception
error(exception.message, 401)
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment