Commit 6cac6152 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Use find_by! instead where/first! on issue links controller

parent d29e6b73
......@@ -37,8 +37,7 @@ module Projects
@issue ||=
IssuesFinder.new(current_user, project_id: project.id)
.execute
.where(iid: params[:issue_id])
.first!
.find_by!(iid: params[:issue_id])
end
end
end
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