Simplify a condition in Repository#update_file

Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
Rémy Coutable 2016-09-12 18:10:08 +02:00
parent 08dc8af733
commit 23612ada54
No known key found for this signature in database
GPG Key ID: 46DF07E5CD9E96AB
1 changed files with 1 additions and 1 deletions

View File

@ -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