From c176a64666cd47505c3db4807f14921e562d8aea Mon Sep 17 00:00:00 2001 From: sakno Date: Wed, 4 Dec 2024 17:36:05 +0200 Subject: [PATCH] Removed redundant negation --- src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs index 723de7b9a..cf51f294b 100644 --- a/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs +++ b/src/DotNext.IO/Buffers/Binary/SevenBitEncodedInt32Reader.cs @@ -7,12 +7,12 @@ namespace DotNext.Buffers.Binary; internal struct SevenBitEncodedInt32Reader : IBufferReader, ISupplier { private SevenBitEncodedInteger decoder; - private bool completed; + private bool incompleted; - readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(!completed); + readonly int IBufferReader.RemainingBytes => Unsafe.BitCast(incompleted); void IReadOnlySpanConsumer.Invoke(ReadOnlySpan source) - => completed = decoder.Append(MemoryMarshal.GetReference(source)) is false; + => incompleted = decoder.Append(MemoryMarshal.GetReference(source)); readonly int ISupplier.Invoke() => (int)decoder.Value; } \ No newline at end of file