File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
lib/src/debugging/metadata Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,9 @@ class MetadataProvider {
192
192
for (var contents in merged.split ('\n ' )) {
193
193
try {
194
194
if (contents.isEmpty ||
195
- contents.startsWith ('// intentionally empty:' )) continue ;
195
+ contents.startsWith ('// intentionally empty:' )) {
196
+ continue ;
197
+ }
196
198
final moduleJson = json.decode (contents);
197
199
final metadata =
198
200
ModuleMetadata .fromJson (moduleJson as Map <String , dynamic >);
Original file line number Diff line number Diff line change @@ -362,10 +362,6 @@ class TestContext {
362
362
buildResults = const Stream <BuildResults >.empty ();
363
363
}
364
364
break ;
365
- default :
366
- throw Exception (
367
- 'Unsupported compilation mode: ${testSettings .compilationMode }' ,
368
- );
369
365
}
370
366
371
367
final debugPort = await findUnusedPort ();
Original file line number Diff line number Diff line change @@ -8,7 +8,9 @@ dynamic toJsonable(dynamic obj) {
8
8
obj is bool ||
9
9
obj is Map <dynamic , dynamic > ||
10
10
obj is List <dynamic > ||
11
- obj == null ) return obj;
11
+ obj == null ) {
12
+ return obj;
13
+ }
12
14
return '$obj ' ;
13
15
}
14
16
You can’t perform that action at this time.
0 commit comments