Skip to content

Commit caa39c4

Browse files
committed
fix unnecessary cast
1 parent 28e5cb1 commit caa39c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ abstract class ModelElement implements Comparable, Nameable, Documentable {
15371537
// the actual annotations are.
15381538
while ((node is VariableDeclaration || node is VariableDeclarationList) &&
15391539
node is! FieldDeclaration) {
1540-
assert(null != (node as AnnotatedNode).parent);
1540+
assert(null != node.parent);
15411541
node = node.parent;
15421542
}
15431543
metadata = node.metadata;

0 commit comments

Comments
 (0)