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

@@ -307,8 +307,9 @@ class TestAsyncUtils {
do { // skip past frames that are from this class
index += 1;
assert(index < stack.length);
lineMatch = getClassPattern.matchAsPrefix(stack[index])!;
lineMatch = getClassPattern.matchAsPrefix(stack[index]);
assert(lineMatch != null);
lineMatch = lineMatch!;
assert(lineMatch.groupCount == 1);
} while (lineMatch.group(1) == _className);
// try to parse the stack to find the interesting frame