enable no_literal_bool_comparisons lint (#126647)

This commit is contained in:
Michael Goderbauer
2023-05-16 18:14:23 +02:00
committed by GitHub
parent b45f9b36e8
commit 5e1ba701ed
46 changed files with 79 additions and 79 deletions

View File

@@ -149,7 +149,7 @@ void testWidgets(
tester._testDescription = combinedDescription;
SemanticsHandle? semanticsHandle;
tester._recordNumberOfSemanticsHandles();
if (semanticsEnabled == true) {
if (semanticsEnabled) {
semanticsHandle = tester.ensureSemantics();
}
test_package.addTearDown(binding.postTest);
@@ -420,7 +420,7 @@ Future<void> benchmarkWidgets(
assert(binding is! AutomatedTestWidgetsFlutterBinding);
final WidgetTester tester = WidgetTester._(binding);
SemanticsHandle? semanticsHandle;
if (semanticsEnabled == true) {
if (semanticsEnabled) {
semanticsHandle = tester.ensureSemantics();
}
tester._recordNumberOfSemanticsHandles();