Continue instead of false return on value > maxValue

This commit is contained in:
Sergey Chebotar 2023-05-30 09:08:11 +03:00
parent f6534fc8c7
commit 0e15ad7cd4

View File

@ -135,16 +135,13 @@ public class GuessReader : IReader
object currentCell = cells[row, 1];
double? value = currentCell as double?;
if (value == null || value == 0)
if (value == null
|| value == 0
|| value > maxValue)
{
continue;
}
if (value > maxValue)
{
return false;
}
if (++successCounter > 1)
{
return true;