diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-30 09:08:11 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2023-05-30 09:08:11 +0300 |
commit | 0e15ad7cd468e7245dbd4d5f1399f23c4ae121cc (patch) | |
tree | deac5c360ff65541e5f8a2427c00b615f90488d3 | |
parent | f6534fc8c783fffe5a8de496c434e423c1d428ab (diff) |
Continue instead of false return on value > maxValue
-rw-r--r-- | RhSolutions.AddIn/Services/GuessReader.cs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/RhSolutions.AddIn/Services/GuessReader.cs b/RhSolutions.AddIn/Services/GuessReader.cs index f1327d5..a6f3264 100644 --- a/RhSolutions.AddIn/Services/GuessReader.cs +++ b/RhSolutions.AddIn/Services/GuessReader.cs @@ -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; |