Commit 9fbd168f authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Remove unnecessary "return" keyword

parent 5b6205d5
...@@ -37,11 +37,11 @@ module Projects ...@@ -37,11 +37,11 @@ module Projects
end end
def authorize_admin_related_issue! def authorize_admin_related_issue!
return render_404 unless can?(current_user, :admin_related_issue, @project) render_404 unless can?(current_user, :admin_related_issue, @project)
end end
def authorize_read_related_issue! def authorize_read_related_issue!
return render_404 unless can?(current_user, :read_related_issue, @project) render_404 unless can?(current_user, :read_related_issue, @project)
end end
def issue def issue
......
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