Skip to content

Commit aa3020a

Browse files
authored
remove repeat if condition (lightvector#546)
1 parent 94c5b91 commit aa3020a

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

cpp/search/search.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,11 +2736,9 @@ void Search::selectBestChildToDescend(
27362736
// out << "ouch" << "\n";
27372737
// }
27382738
// }
2739-
if(selectionValue > maxSelectionValue) {
2740-
maxSelectionValue = selectionValue;
2741-
bestChildIdx = i;
2742-
bestChildMoveLoc = moveLoc;
2743-
}
2739+
maxSelectionValue = selectionValue;
2740+
bestChildIdx = i;
2741+
bestChildMoveLoc = moveLoc;
27442742
}
27452743

27462744
posesWithChildBuf[getPos(moveLoc)] = true;

0 commit comments

Comments
 (0)