Skip to content

Commit

Permalink
Removed !valid from the condition since it always returns false
Browse files Browse the repository at this point in the history
Signed-off-by: Surajjalpun2002 <[email protected]>
  • Loading branch information
Surajjalpun2002 committed Oct 15, 2023
1 parent 2414366 commit bb70a28
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 bb70a28

Please sign in to comment.