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

Commit fb81f66

Browse files
committed
typo
1 parent d669137 commit fb81f66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/rules/unnecessary_const.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class _Visitor extends SimpleAstVisitor {
7171

7272
@override
7373
void visitRecordLiteral(RecordLiteral node) {
74-
if (node.constKeyword != null) return;
74+
if (node.constKeyword == null) return;
7575

7676
if (node.inConstantContext) {
7777
rule.reportLint(node);

0 commit comments

Comments
 (0)