From e6ed5d0686ea2582e1879774cc16bf3d229b2b87 Mon Sep 17 00:00:00 2001 From: lc6464 <64722907+lc6464@users.noreply.github.com> Date: Thu, 24 Aug 2023 19:45:49 +0800 Subject: [PATCH] Skip DeepSource CS-W1082 --- Stream.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Stream.cs b/Stream.cs index d7c1b76..b940b0c 100644 --- a/Stream.cs +++ b/Stream.cs @@ -118,7 +118,7 @@ public static long DecodeToStream(Stream stream, Stream output) { int readCount, writeCount = 0; // skipcq: CS-W1022 赋值的确是不必要的 while ((readCount = stream.Read(buffer, 0, bufferLength)) > 0) { if (Convert.ToBoolean(end = IsNextEnd(stream))) { - buffer[readCount++] = 61; // (byte)'=' + buffer[readCount++] = 61; // (byte)'=' // skipcq: CS-W1082 readCount 值已递增,不会被后续语句覆盖 buffer[readCount++] = end; } var decodedData = Decode(buffer, readCount);