Skip to content

Commit

Permalink
builder.TryParse() will never output a value < 0
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Aug 26, 2023
1 parent b1d3687 commit 5f0cca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MailKit/Net/Imap/ImapStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ ImapToken ReadLiteralToken (CancellationToken cancellationToken)
// skip over the '\n'
inputIndex++;

if (!builder.TryParse (1, endIndex, out literalDataLeft) || literalDataLeft < 0)
if (!builder.TryParse (1, endIndex, out literalDataLeft))
return ImapToken.Create (ImapTokenType.Error, builder.ToString ());

Mode = ImapStreamMode.Literal;
Expand Down

0 comments on commit 5f0cca3

Please sign in to comment.