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];
|
object currentCell = cells[row, 1];
|
||||||
double? value = currentCell as double?;
|
double? value = currentCell as double?;
|
||||||
|
|
||||||
if (value == null || value == 0)
|
if (value == null
|
||||||
|
|| value == 0
|
||||||
|
|| value > maxValue)
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value > maxValue)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (++successCounter > 1)
|
if (++successCounter > 1)
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user