Skip to content

Commit

Permalink
Address analysis issues (#2499)
Browse files Browse the repository at this point in the history
  • Loading branch information
derekxu16 authored Sep 26, 2024
1 parent 3ea36fd commit c63ad2d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion dwds/lib/src/debugging/metadata/provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ class MetadataProvider {
for (var contents in merged.split('\n')) {
try {
if (contents.isEmpty ||
contents.startsWith('// intentionally empty:')) continue;
contents.startsWith('// intentionally empty:')) {
continue;
}
final moduleJson = json.decode(contents);
final metadata =
ModuleMetadata.fromJson(moduleJson as Map<String, dynamic>);
Expand Down
4 changes: 0 additions & 4 deletions dwds/test/fixtures/context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,6 @@ class TestContext {
buildResults = const Stream<BuildResults>.empty();
}
break;
default:
throw Exception(
'Unsupported compilation mode: ${testSettings.compilationMode}',
);
}

final debugPort = await findUnusedPort();
Expand Down
4 changes: 3 additions & 1 deletion webdev/lib/src/daemon/utilites.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ dynamic toJsonable(dynamic obj) {
obj is bool ||
obj is Map<dynamic, dynamic> ||
obj is List<dynamic> ||
obj == null) return obj;
obj == null) {
return obj;
}
return '$obj';
}

Expand Down

0 comments on commit c63ad2d

Please sign in to comment.