Skip to content

Commit

Permalink
Ignore DCM error for type assertion (#6185)
Browse files Browse the repository at this point in the history
  • Loading branch information
elliette authored Aug 16, 2023
1 parent e75e03d commit 5caf423
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ class ExtensionsManager {

for (final extension in extensions) {
final config = extension.config;
if (config is Map) {
// ignore: avoid-unnecessary-type-assertions; false positive, config is type Object.
if (config is! Map) {
// Fail gracefully. Invalid content in the extension's config.json.
print(
'[WARNING] invalid config.json content for ${extension.package}:\n'
Expand Down

0 comments on commit 5caf423

Please sign in to comment.