Use if instead of unless on Projects::HashedStorage::MigrateRepositoryService

This commit is contained in:
Douglas Barbosa Alexandre 2018-01-03 16:26:59 -02:00
parent 08de4746dc
commit 14336c0bda

View file

@ -27,11 +27,11 @@ module Projects
result &&= move_repository("#{@old_wiki_disk_path}", "#{@new_disk_path}.wiki")
end
unless result
if result
project.write_repository_config
else
rollback_folder_move
project.storage_version = nil
else
project.write_repository_config
end
project.repository_read_only = false