summaryrefslogtreecommitdiff
path: root/app/controllers/projects
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-04 16:46:37 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 15:33:39 +0100
commit1d5d5b1a428f389ba4d9e66c17852e115ba32f83 (patch)
tree7f3560625c4c70d7536ee72b3968699f53b51ee1 /app/controllers/projects
parenteb1feae09eeed1236694f85129acd9133cb530b6 (diff)
downloadgitlab-ce-1d5d5b1a428f389ba4d9e66c17852e115ba32f83.tar.gz
refactors blob_controller
Diffstat (limited to 'app/controllers/projects')
-rw-r--r--app/controllers/projects/blob_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index fc608399fcb..4d8bb5be20b 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -43,7 +43,7 @@ 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
- unless params[:file_name] == @path
+ unless params[:file_name].empty?
@previous_path = @path
@path = params[:file_name]
end