From d0823db595228ceccb2ffaf6fd75232dc2918095 Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Sun, 25 Jan 2026 15:04:28 +0000 Subject: [PATCH] fmt --- .../Writers/GZip/GZipWriter.Async.cs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/SharpCompress/Writers/GZip/GZipWriter.Async.cs b/src/SharpCompress/Writers/GZip/GZipWriter.Async.cs index 5471deaa..81b9d825 100644 --- a/src/SharpCompress/Writers/GZip/GZipWriter.Async.cs +++ b/src/SharpCompress/Writers/GZip/GZipWriter.Async.cs @@ -8,7 +8,12 @@ namespace SharpCompress.Writers.GZip; public partial class GZipWriter { - public override async ValueTask WriteAsync(string filename, Stream source, DateTime? modificationTime, CancellationToken cancellationToken = default) + public override async ValueTask WriteAsync( + string filename, + Stream source, + DateTime? modificationTime, + CancellationToken cancellationToken = default + ) { if (_wroteToStream) { @@ -20,12 +25,15 @@ public partial class GZipWriter var progressStream = WrapWithProgress(source, filename); #if LEGACY_DOTNET await progressStream.CopyToAsync(stream); - #else +#else await progressStream.CopyToAsync(stream, cancellationToken); #endif _wroteToStream = true; } - public override ValueTask WriteDirectoryAsync(string directoryName, DateTime? modificationTime, CancellationToken cancellationToken = default) => - throw new NotSupportedException("GZip archives do not support directory entries."); + public override ValueTask WriteDirectoryAsync( + string directoryName, + DateTime? modificationTime, + CancellationToken cancellationToken = default + ) => throw new NotSupportedException("GZip archives do not support directory entries."); }