Skip to content

Commit 15b2a6a

Browse files
authored
Fix analysis hints (#2014)
1 parent eb2d5e2 commit 15b2a6a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lib/src/model.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5671,7 +5671,7 @@ class PackageGraph {
56715671
lib ??= Library(e.enclosingElement.library, packageGraph);
56725672
// (TODO:keertip) Find a better way to exclude members of extensions
56735673
// when libraries are specified using the "--include" flag
5674-
if (lib?.isDocumented) {
5674+
if (lib?.isDocumented == true) {
56755675
return ModelElement.from(e, lib, packageGraph);
56765676
}
56775677
}

test/model_test.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2100,13 +2100,12 @@ void main() {
21002100
});
21012101

21022102
group('Extension', () {
2103-
Extension ext, anExt, fancyList;
2103+
Extension ext, fancyList;
21042104
Method s;
21052105
List<Extension> extensions;
21062106

21072107
setUpAll(() {
21082108
ext = exLibrary.extensions.firstWhere((e) => e.name == 'AppleExtension');
2109-
anExt = exLibrary.extensions.firstWhere((e) => e.name == 'AnExtension');
21102109
fancyList = exLibrary.extensions.firstWhere((e) => e.name == 'FancyList');
21112110
extensions = exLibrary.publicExtensions.toList();
21122111
});

0 commit comments

Comments
 (0)