Could be faster when params[:path] is missing
This commit is contained in:
parent
e383254070
commit
57c72cb0df
1 changed files with 2 additions and 2 deletions
|
@ -36,9 +36,9 @@ class Projects::ArtifactsController < Projects::ApplicationController
|
|||
end
|
||||
|
||||
def search
|
||||
url = namespace_project_build_url(project.namespace, project, build)
|
||||
|
||||
if params[:path]
|
||||
url = namespace_project_build_url(project.namespace, project, build)
|
||||
|
||||
redirect_to "#{url}/artifacts/#{params[:path]}"
|
||||
else
|
||||
render_404
|
||||
|
|
Loading…
Reference in a new issue