Skip to content
Snippets Groups Projects
Verified Commit 23612ada authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Simplify a condition in Repository#update_file


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 08dc8af7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment