Continue instead of false return on value > maxValue
This commit is contained in:
parent
f6534fc8c7
commit
0e15ad7cd4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user