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

@@ -328,7 +328,7 @@ class AOTSnapshotter {
}
}
} else {
assert(stripAfterBuild == false);
assert(!stripAfterBuild);
}
return 0;

View File

@@ -1101,7 +1101,7 @@ class PrefixedErrorLogger extends DelegatingLogger {
bool? wrap,
}) {
hadErrorOutput = true;
if (message.trim().isNotEmpty == true) {
if (message.trim().isNotEmpty) {
message = 'ERROR: $message';
}
super.printError(