Skip to content

Commit

Permalink
Merge pull request #1373 from Surajjalpun2002/master
Browse files Browse the repository at this point in the history
Removed !valid from the condition since it always returns false
  • Loading branch information
ghutchis authored Oct 16, 2023
2 parents 2414366 + bb70a28 commit a1fa3ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions avogadro/core/angleiterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ Angle AngleIterator::operator++()
if (valid) {
// we have a valid current angle, try to find a new edge
for (const auto maybeC : graph.neighbors(b)) {
if (maybeC != a
&& (!valid || maybeC > c)) {
if (maybeC != a && maybeC > c) {
m_current = make_tuple(a, b, maybeC);
return m_current;
}
Expand Down

0 comments on commit a1fa3ab

Please sign in to comment.