From deda7c2ba58fba155e4fdef5dda7784f32eada39 Mon Sep 17 00:00:00 2001 From: magnesj <1793152+magnesj@users.noreply.github.com> Date: Thu, 1 Oct 2026 02:47:50 +0000 Subject: [PATCH] Fixes by clang-tidy --- .../ReservoirDataModel/ContourMap/RigContourMapPeakFinder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationLibCode/ReservoirDataModel/ContourMap/RigContourMapPeakFinder.cpp b/ApplicationLibCode/ReservoirDataModel/ContourMap/RigContourMapPeakFinder.cpp index b3a40825b2..8cec51d90b 100644 --- a/ApplicationLibCode/ReservoirDataModel/ContourMap/RigContourMapPeakFinder.cpp +++ b/ApplicationLibCode/ReservoirDataModel/ContourMap/RigContourMapPeakFinder.cpp @@ -200,7 +200,7 @@ std::vector // Zero prominence: flat shoulders and plateaus are not peaks. Only a single isolated cell (no other // data to compare against) is kept as a legitimate, if trivial, peak. - if ( prominence[k] <= 0.0 && !( isSurvivingRoot[k] && regionSize[k] == 1 ) ) continue; + if ( prominence[k] <= 0.0 && ( !isSurvivingRoot[k] || regionSize[k] != 1 ) ) continue; const int i = k % nx; const int j = k / nx;