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

parent 08de4746
...@@ -27,11 +27,11 @@ module Projects ...@@ -27,11 +27,11 @@ module Projects
result &&= move_repository("#{@old_wiki_disk_path}", "#{@new_disk_path}.wiki") result &&= move_repository("#{@old_wiki_disk_path}", "#{@new_disk_path}.wiki")
end end
unless result if result
project.write_repository_config
else
rollback_folder_move rollback_folder_move
project.storage_version = nil project.storage_version = nil
else
project.write_repository_config
end end
project.repository_read_only = false project.repository_read_only = false
......
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