Commit 23612ada authored by Rémy Coutable's avatar Rémy Coutable

Simplify a condition in Repository#update_file

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 08dc8af7
......@@ -813,7 +813,7 @@ class Repository
update: true
}
unless previous_path == path || previous_path.blank?
if previous_path && previous_path != path
options[:file][:previous_path] = previous_path
Gitlab::Git::Blob.rename(raw_repository, options)
else
......
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