Skip to content

Commit 3112f80

Browse files
authored
Ignore HintCode.UNNECESSARY_TYPE_CHECK_TRUE (#1457)
1 parent ad886d9 commit 3112f80

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

lib/src/extend/functions.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,14 +404,18 @@ List<List<List<ComplexSelectorComponent>>>? _mergeFinalCombinators(
404404
result.addFirst([
405405
[compound2, combinator2]
406406
]);
407-
components1..add(compound1)..add(Combinator.child);
407+
components1
408+
..add(compound1)
409+
..add(Combinator.child);
408410
} else if (combinator2 == Combinator.child &&
409411
(combinator1 == Combinator.nextSibling ||
410412
combinator1 == Combinator.followingSibling)) {
411413
result.addFirst([
412414
[compound1, combinator1]
413415
]);
414-
components2..add(compound2)..add(Combinator.child);
416+
components2
417+
..add(compound2)
418+
..add(Combinator.child);
415419
} else if (combinator1 == combinator2) {
416420
var unified = unifyCompound(compound1.components, compound2.components);
417421
if (unified == null) return null;

lib/src/visitor/async_evaluate.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ class _EvaluateVisitor
439439
}
440440

441441
var callable = function.assertFunction("function").callable;
442+
// ignore: unnecessary_type_check
442443
if (callable is AsyncCallable) {
443444
return await _runFunctionCallable(
444445
invocation, callable, _callableNode!);

lib/src/visitor/evaluate.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// DO NOT EDIT. This file was generated from async_evaluate.dart.
66
// See tool/grind/synchronize.dart for details.
77
//
8-
// Checksum: 37fd148527c89ecfa79b51500b589b27a83f542e
8+
// Checksum: 2d9c3bb53fc29472f7fbc68d9a3f5b8464f95bc5
99
//
1010
// ignore_for_file: unused_import
1111

@@ -446,6 +446,7 @@ class _EvaluateVisitor
446446
}
447447

448448
var callable = function.assertFunction("function").callable;
449+
// ignore: unnecessary_type_check
449450
if (callable is Callable) {
450451
return _runFunctionCallable(invocation, callable, _callableNode!);
451452
} else {

0 commit comments

Comments
 (0)