From 179fd07328c0ede9d4369788fb72f5f6fe0b7fbc Mon Sep 17 00:00:00 2001 From: Tim Adye Date: Wed, 16 Oct 2024 14:37:04 +0100 Subject: [PATCH] fix single-line if --- Core/include/Acts/TrackFinding/TrackSelector.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/include/Acts/TrackFinding/TrackSelector.hpp b/Core/include/Acts/TrackFinding/TrackSelector.hpp index e24327ecd45..eea308805dc 100644 --- a/Core/include/Acts/TrackFinding/TrackSelector.hpp +++ b/Core/include/Acts/TrackFinding/TrackSelector.hpp @@ -366,8 +366,9 @@ inline std::size_t TrackSelector::EtaBinnedConfig::binIndexNoCheck( auto binIt = std::upper_bound(absEtaEdges.begin(), absEtaEdges.end(), std::abs(eta)); std::size_t index = std::distance(absEtaEdges.begin(), binIt); - if (index == 0) + if (index == 0) { index = absEtaEdges.size() + 1; // positive value to check for underflow + } return index - 1; }