Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
nexedi
gitlab-ce
Commits
8789464c
Commit
8789464c
authored
7 years ago
by
Oswaldo Ferreira
Browse files
Options
Download
Email Patches
Plain Diff
Remove unnecessary begin/end from error rescuing
parent
0d5290a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
app/services/related_issues/create_service.rb
app/services/related_issues/create_service.rb
+3
-5
No files found.
app/services/related_issues/create_service.rb
View file @
8789464c
...
...
@@ -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
create_related_issues!
success_message
rescue
=>
exception
error
(
exception
.
message
,
401
)
end
private
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment