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

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
eernstg committed Sep 14, 2023
1 parent b9933d8 commit f2a1621
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/rules/avoid_unstable_final_fields.dart
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ bool _isLocallyStable(Element element) {
var metadataElement = elementAnnotation.element;
if (metadataElement is ConstructorElement) {
var metadataOwner = metadataElement.declaration.enclosingElement3;
if (metadataOwner is ClassElement &&
metadataOwner.isDartCoreObject) {
if (metadataOwner is ClassElement && metadataOwner.isDartCoreObject) {
// A declaration with `@Object()` is not considered stable.
return false;
}
Expand Down

0 comments on commit f2a1621

Please sign in to comment.