From 0e15ad7cd468e7245dbd4d5f1399f23c4ae121cc Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Tue, 30 May 2023 09:08:11 +0300 Subject: [PATCH] Continue instead of false return on value > maxValue --- RhSolutions.AddIn/Services/GuessReader.cs | 9 +++------ 1 file 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;