Skip to content

Commit

Permalink
Use async every in ZipHelper (#304)
Browse files Browse the repository at this point in the history
  • Loading branch information
haga-rak authored Sep 12, 2024
1 parent 7de95ce commit 72131c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Fluxzy.Core/Archiving/ZipHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ private static async Task InternalCompressDirectory(
newEntry.CompressionMethod = CompressionMethod.Stored;
}

zipStream.PutNextEntry(newEntry);
await zipStream.PutNextEntryAsync(newEntry);
await fsInput.CopyToAsync(zipStream);
zipStream.CloseEntry();
}
Expand Down Expand Up @@ -131,7 +131,7 @@ private static async Task InternaCompressDirectoryWithFileInfos(
newEntry.CompressionMethod = CompressionMethod.Stored;
}

zipStream.PutNextEntry(newEntry);
await zipStream.PutNextEntryAsync(newEntry);
await fsInput.CopyToAsync(zipStream);
zipStream.CloseEntry();
}
Expand Down

0 comments on commit 72131c9

Please sign in to comment.