Skip to content

Commit

Permalink
refactor: ignored invariant boolean warning (#47)
Browse files Browse the repository at this point in the history
* refactor: removed invariant boolean

* refactor: ignored lint rule
  • Loading branch information
alestiago committed May 13, 2022
1 parent 47037a1 commit c032f9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/forge2d/lib/src/dynamics/world.dart
Expand Up @@ -746,6 +746,10 @@ class World {
if (bodyA.sweep.alpha0 < bodyB.sweep.alpha0) {
alpha0 = bodyB.sweep.alpha0;
bodyA.sweep.advance(alpha0);
// NOTE: The following line is ignored due to a false positive
// analyzer warning.
// https://github.com/dart-lang/linter/issues/811
// ignore: invariant_booleans
} else if (bodyB.sweep.alpha0 < bodyA.sweep.alpha0) {
alpha0 = bodyA.sweep.alpha0;
bodyB.sweep.advance(alpha0);
Expand Down

0 comments on commit c032f9c

Please sign in to comment.