1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:07:52 +08:00

Fix formatting

This commit is contained in:
Dean Herbert 2024-04-30 21:47:03 +08:00
parent a3213fc36d
commit 6a7e2dc258
No known key found for this signature in database

View File

@ -36,10 +36,12 @@ namespace osu.Game.Database
public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default) public override void ExportToStream(TModel model, Stream outputStream, ProgressNotification? notification, CancellationToken cancellationToken = default)
{ {
using (var writer = new ZipWriter(outputStream, new ZipWriterOptions(CompressionType.Deflate) var zipWriterOptions = new ZipWriterOptions(CompressionType.Deflate)
{ {
ArchiveEncoding = UseFixedEncoding ? ZipArchiveReader.DEFAULT_ENCODING : new ArchiveEncoding(Encoding.UTF8, Encoding.UTF8) ArchiveEncoding = UseFixedEncoding ? ZipArchiveReader.DEFAULT_ENCODING : new ArchiveEncoding(Encoding.UTF8, Encoding.UTF8)
})) };
using (var writer = new ZipWriter(outputStream, zipWriterOptions))
{ {
int i = 0; int i = 0;
int fileCount = model.Files.Count(); int fileCount = model.Files.Count();