Skip to content

Commit e7d9371

Browse files
committed
fix dcm errors
1 parent 2dd2ae6 commit e7d9371

2 files changed

Lines changed: 2 additions & 5 deletions

File tree

packages/devtools_app/lib/src/shared/console/eval/auto_complete.dart

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ Future<List<String>> autoCompleteResultsFor(
9494
}
9595
} catch (_) {}
9696
}
97-
return result.nonNulls
98-
.where((name) => name.startsWith(parts.activeWord))
99-
.toList();
97+
return result.where((name) => name.startsWith(parts.activeWord)).toList();
10098
}
10199

102100
// Due to https://github.com/dart-lang/sdk/issues/46221
@@ -197,7 +195,7 @@ Future<Set<String>> _libraryMemberAutocompletes(
197195
final members = functions.map(
198196
(funcRef) => funcRef.name!.replaceAll('=', ''),
199197
);
200-
result.addAll(members.nonNulls);
198+
result.addAll(members);
201199
}
202200
final classes = library.classes;
203201
if (classes != null) {

packages/devtools_shared/lib/src/extensions/extension_model.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class DevToolsExtensionConfig implements Comparable<DevToolsExtensionConfig> {
3939
nameKey: final String name,
4040
issueTrackerKey: final String issueTracker,
4141
versionKey: final String version,
42-
// ignore: avoid-unnecessary-type-assertions, this can be a String or an int
4342
materialIconCodePointKey: final Object codePointFromJson,
4443
// The expected keys below are not from the extension's config.yaml
4544
// file; they are generated during the extension detection mechanism

0 commit comments

Comments
 (0)