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

@@ -924,7 +924,7 @@ class _SnippetChecker {
continue;
}
final _SnippetFile snippet = snippets[file.path]!;
final _SnippetFile? snippet = snippets[file.path];
if (snippet == null) {
errors.add(_SnippetCheckerException(
"Unknown section for ${file.path}. Maybe the temporary directory wasn't empty?",