Skip to content

Commit

Permalink
chore: fix codacy code analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
luispfgarces committed Jun 5, 2024
1 parent 8693017 commit 2b204f3
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/Rules.Framework.Rql/Pipeline/Scan/Scanner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,12 @@ private static Token CreateToken(ScanContext scanContext, string lexeme, TokenTy
private static Token HandleDate(ScanContext scanContext)
{
string lexeme;
while (scanContext.GetNextChar() != '$' && scanContext.MoveNext())
while (scanContext.GetNextChar() != '$')
{
continue;
if (!scanContext.MoveNext())
{
break;
}
}

if (scanContext.IsEof())
Expand Down Expand Up @@ -205,7 +208,10 @@ static void ConsumeDigits(ScanContext scanContext)
{
while (IsNumeric(scanContext.GetNextChar()) && scanContext.MoveNext())
{
continue;
if (!scanContext.MoveNext())
{
break;
}
}
}

Expand Down

0 comments on commit 2b204f3

Please sign in to comment.