Skip to content

Commit

Permalink
!valid always returns false and hence is unnecessary
Browse files Browse the repository at this point in the history
Signed-off-by: Surajjalpun2002 <[email protected]>
  • Loading branch information
Surajjalpun2002 committed Oct 19, 2023
1 parent 3cb9696 commit f3d76c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avogadro/core/dihedraliterator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Dihedral DihedralIterator::operator++()
if (valid) {
// we have a valid current dihedral, try to find a new "d"
for (const auto maybeD : graph.neighbors(c)) {
if (maybeD != a && maybeD != b && (!valid || maybeD > d)) {
if (maybeD != a && maybeD != b && maybeD > d) {
m_current = make_tuple(a, b, c, maybeD);
return m_current;
}
Expand Down

0 comments on commit f3d76c1

Please sign in to comment.