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

Commit a082960

Browse files
committed
--
1 parent b6c8f04 commit a082960

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lib/src/extensions.dart

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -428,11 +428,7 @@ extension NullableAstNodeExtension on AstNode? {
428428
}
429429

430430
extension TokenExtension on Token? {
431-
bool get isFinal {
432-
var self = this;
433-
if (self == null) return false;
434-
return self.keyword == Keyword.FINAL;
435-
}
431+
bool get isFinal => this?.keyword == Keyword.FINAL;
436432
}
437433

438434
extension TokenTypeExtension on TokenType {

0 commit comments

Comments
 (0)