Remove unnecessary null checks in dev/bots (#118846)

This commit is contained in:
Michael Goderbauer
2023-01-20 17:39:19 -08:00
committed by GitHub
parent 70cecf6c9e
commit c757df3bfa
5 changed files with 6 additions and 18 deletions

View File

@@ -1018,7 +1018,7 @@ Future<void> _runFrameworkTests() async {
printOutput: false,
outputChecker: (CommandResult result) {
final Iterable<Match> matches = httpClientWarning.allMatches(result.flattenedStdout!);
if (matches == null || matches.isEmpty || matches.length > 1) {
if (matches.isEmpty || matches.length > 1) {
return 'Failed to print warning about HttpClientUsage, or printed it too many times.\n\n'
'stdout:\n${result.flattenedStdout}\n\n'
'stderr:\n${result.flattenedStderr}';