From d8797b69e47dd2e294a74ea09ad57aa729cad1fd Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Wed, 22 Oct 2025 09:19:09 +0100 Subject: [PATCH] remove do while --- src/SharpCompress/Utility.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/SharpCompress/Utility.cs b/src/SharpCompress/Utility.cs index b22d8005..5dc53e62 100644 --- a/src/SharpCompress/Utility.cs +++ b/src/SharpCompress/Utility.cs @@ -98,7 +98,9 @@ internal static class Utility public static void Skip(this Stream source) { using var buffer = MemoryPool.Shared.Rent(TEMP_BUFFER_SIZE); - do { } while (source.Read(buffer.Memory.Span) > 0); + while (source.Read(buffer.Memory.Span) > 0) + { + } } public static DateTime DosDateToDateTime(ushort iDate, ushort iTime)