summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-01 17:53:05 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-04 11:03:40 +0100
commitb95b23f3ed649fc58dc7dbd1ec3703d2d7f75187 (patch)
treea916d77a67fa4085b9a2cbb65bc9a7a8ae447258
parentad799589866ee0aa18a66af2fff453daaf8d9457 (diff)
downloadgitlab-ce-b95b23f3ed649fc58dc7dbd1ec3703d2d7f75187.tar.gz
remove prints and useless comments
-rw-r--r--app/controllers/projects/blob_controller.rb2
-rw-r--r--app/services/files/base_service.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index e76d5009855..2bd86a1f126 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -43,8 +43,8 @@ class Projects::BlobController < Projects::ApplicationController
diffs_namespace_project_merge_request_path(from_merge_request.target_project.namespace, from_merge_request.target_project, from_merge_request) +
"#file-path-#{hexdigest(@path)}"
else
- # params[:file_name] stores the new name for the file
unless params[:file_name] == @path
+ previous_path = @path
@path = params[:file_name]
end
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index cd5b45262ac..0326a8823e9 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -15,8 +15,6 @@ module Files
params[:file_content]
end
- puts @file_path
-
# Validate parameters
validate