Skip to content

Commit c63ad2d

Browse files
authored
Address analysis issues (#2499)
1 parent 3ea36fd commit c63ad2d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dwds/lib/src/debugging/metadata/provider.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,9 @@ class MetadataProvider {
192192
for (var contents in merged.split('\n')) {
193193
try {
194194
if (contents.isEmpty ||
195-
contents.startsWith('// intentionally empty:')) continue;
195+
contents.startsWith('// intentionally empty:')) {
196+
continue;
197+
}
196198
final moduleJson = json.decode(contents);
197199
final metadata =
198200
ModuleMetadata.fromJson(moduleJson as Map<String, dynamic>);

dwds/test/fixtures/context.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ class TestContext {
362362
buildResults = const Stream<BuildResults>.empty();
363363
}
364364
break;
365-
default:
366-
throw Exception(
367-
'Unsupported compilation mode: ${testSettings.compilationMode}',
368-
);
369365
}
370366

371367
final debugPort = await findUnusedPort();

webdev/lib/src/daemon/utilites.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ dynamic toJsonable(dynamic obj) {
88
obj is bool ||
99
obj is Map<dynamic, dynamic> ||
1010
obj is List<dynamic> ||
11-
obj == null) return obj;
11+
obj == null) {
12+
return obj;
13+
}
1214
return '$obj';
1315
}
1416

0 commit comments

Comments
 (0)