Enable unnecessary_null_checks lint (#82084)

This commit is contained in:
Abhishek Ghaskata
2021-05-14 23:14:03 +05:30
committed by GitHub
parent f6747dfa10
commit b554f893bd
15 changed files with 26 additions and 23 deletions

View File

@@ -227,7 +227,9 @@ class SnippetGenerator {
if (match != null) { // If we saw the start or end of a code block
inCodeBlock = !inCodeBlock;
if (match.namedGroup('language') != null) {
language = match[1]!;
language = match[1];
assert(language != null);
language = language!;
if (match.namedGroup('section') != null) {
components.add(_ComponentTuple('code-${match.namedGroup('section')}', <String>[], language: language));
} else {