Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading