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:
parent
8d2afa2a5d
commit
98244e0a04
|
@ -672,7 +672,7 @@ class Position {
|
|||
pieceToRemoveCount--;
|
||||
updateKeyMisc();
|
||||
|
||||
if (pieceToRemoveCount > 0) {
|
||||
if (pieceToRemoveCount != 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue