Skip to content

Commit

Permalink
minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cvarni committed Oct 3, 2024
1 parent d62e73c commit ff2eeac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Examples/Algorithms/TrackFinding/src/SeedingAlgorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,9 @@ ActsExamples::ProcessCode ActsExamples::SeedingAlgorithm::execute(
double minRange = std::numeric_limits<double>::max();
double maxRange = std::numeric_limits<double>::lowest();
for (const auto& coll : grid) {
if (coll.empty())
if (coll.empty()) {
continue;
}
const auto* firstEl = coll.front();
const auto* lastEl = coll.back();
if (firstEl->radius() < minRange) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,9 @@ ActsExamples::ProcessCode ActsExamples::SeedingAlgorithmHashing::execute(
double minRange = std::numeric_limits<double>::max();
double maxRange = std::numeric_limits<double>::lowest();
for (const auto& coll : grid) {
if (coll.empty())
if (coll.empty()) {
continue;
}
const auto* firstEl = coll.front();
const auto* lastEl = coll.back();
if (firstEl->radius() < minRange) {
Expand Down

0 comments on commit ff2eeac

Please sign in to comment.