Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
8789464c
Commit
8789464c
authored
May 17, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unnecessary begin/end from error rescuing
parent
0d5290a8
Changes
1
Show 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
...
@@ -9,13 +9,11 @@ module RelatedIssues
return
error
(
'No Issue found for given reference'
,
401
)
return
error
(
'No Issue found for given reference'
,
401
)
end
end
begin
create_related_issues!
create_related_issues!
rescue
=>
exception
return
error
(
exception
.
message
,
401
)
end
success_message
success_message
rescue
=>
exception
error
(
exception
.
message
,
401
)
end
end
private
private
...
...
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