Skip to content

Commit

Permalink
fix: if !value -> if !has_value
Browse files Browse the repository at this point in the history
  • Loading branch information
c-dilks committed Dec 3, 2024
1 parent 0ddf93c commit f9a6da3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iguana/algorithms/clas12/PhotonGBTFilter/Algorithm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ namespace iguana::clas12 {
auto mass = particle::get(particle::mass, pid);

// Skip over particle if its mass was undefined
if (!mass.value()) continue;
if (!mass.has_value()) continue;
auto px = particleBank.getFloat("px",inner_row);
auto py = particleBank.getFloat("py",inner_row);
auto pz = particleBank.getFloat("pz",inner_row);
Expand Down

0 comments on commit f9a6da3

Please sign in to comment.