Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-17 16:51:50 +0300
committerDouwe Maan <douwe@gitlab.com>2015-10-17 18:53:29 +0300
commit9e0d3f6ed37ce3c685c190d554c4b7f17f0fc1d0 (patch)
tree8ee16eb561307748411de0f487daef9399dd2c9e
parent84aa1f97595c70f6ad2a0f359d1605aba037a973 (diff)
Remove unused param.
-rw-r--r--app/controllers/projects/builds_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb
index 81e35ef9b40..a1e7650ab03 100644
--- a/app/controllers/projects/builds_controller.rb
+++ b/app/controllers/projects/builds_controller.rb
@@ -46,11 +46,7 @@ class Projects::BuildsController < Projects::ApplicationController
build = Ci::Build.retry(@build)
- if params[:return_to]
- redirect_to URI.parse(params[:return_to]).path
- else
- redirect_to build_path(build)
- end
+ redirect_to build_path(build)
end
def status