Skip to content

Commit 12e596c

Browse files
committed
Remove unnecessary null assertion
1 parent addf2d8 commit 12e596c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/src/model/accessor.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class Accessor extends ModelElement {
120120
ModelElement get enclosingElement => switch (element2.enclosingElement2) {
121121
LibraryFragment enclosingCompilationUnit =>
122122
getModelForElement2(enclosingCompilationUnit.element),
123-
_ => getModelFor2(element2.enclosingElement2!, library)
123+
_ => getModelFor2(element2.enclosingElement2, library)
124124
};
125125

126126
@override

0 commit comments

Comments
 (0)