Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 05c8209

Browse files
committed
--
1 parent 3f689a8 commit 05c8209

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/src/rules/unnecessary_null_checks.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,6 @@ class _Visitor extends SimpleAstVisitor<void> {
188188

189189
@override
190190
void visitNullAssertPattern(NullAssertPattern node) {
191-
if (node.operator.type != TokenType.BANG) return;
192-
193191
var expectedType = node.matchedValueType;
194192
if (expectedType != null && context.typeSystem.isNullable(expectedType)) {
195193
rule.reportLintForToken(node.operator);

0 commit comments

Comments
 (0)