Skip to content

Commit

Permalink
Update RespReadResponseUtils.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Xizt authored Feb 10, 2025
1 parent 046fcd8 commit 7a70436
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/client/RespReadResponseUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public static bool TryReadStringArrayWithLengthHeader(out string[] result, ref b
return false;
}

if (length < 0)
if (length <= 0)
{
// NULL value ('*-1\r\n')
return true;
Expand Down Expand Up @@ -279,4 +279,4 @@ public static bool TryReadString(MemoryPool<byte> pool, out MemoryResult<byte> r
return false;
}
}
}
}

0 comments on commit 7a70436

Please sign in to comment.