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
7e142480
Commit
7e142480
authored
Jun 21, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use rescued 404 instead explicity not_found method call
parent
68e5f51b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lib/api/issue_links.rb
lib/api/issue_links.rb
+1
-3
No files found.
lib/api/issue_links.rb
View file @
7e142480
...
...
@@ -57,9 +57,7 @@ module API
requires
:issue_link_id
,
type:
Integer
,
desc:
'The ID of an issue link'
end
delete
':id/issues/:issue_iid/links/:issue_link_id'
do
issue_link
=
IssueLink
.
find_by
(
id:
declared_params
[
:issue_link_id
])
not_found!
unless
issue_link
issue_link
=
IssueLink
.
find
(
declared_params
[
:issue_link_id
])
result
=
::
IssueLinks
::
DestroyService
.
new
(
issue_link
,
current_user
)
...
...
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