lint: Fix invariant booleans

info: Conditions should not unconditionally evaluate to `true` or
to `false`. verify: pieceToRemoveCount <= 0.
(invariant_booleans at [sanmill] lib/mill/position.dart:675)
This commit is contained in:
Calcitem 2021-10-16 13:35:02 +08:00 committed by GitHub
parent 8d2afa2a5d
commit 98244e0a04
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -672,7 +672,7 @@ class Position {
pieceToRemoveCount--;
updateKeyMisc();
if (pieceToRemoveCount > 0) {
if (pieceToRemoveCount != 0) {
return 0;
}