Skip to content

Commit 90948f6

Browse files
committed
WIP on newline-all-the-json: e1e2a33 Add final newline to sdk_labels.json file.
2 parents e1e2a33 + bc142cb commit 90948f6

File tree

5 files changed

+243
-153
lines changed

5 files changed

+243
-153
lines changed

lib/redirect.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final _matchers = <RegExp, Uri Function(String)>{
4646
'q': [
4747
'is:issue',
4848
'is:open',
49-
..._areaLabels.map((label) => '-label:$label'),
49+
'-label:${_areaLabels.join(',')}',
5050
].join(' '),
5151
},
5252
);
@@ -134,11 +134,11 @@ String? _checkMatch(RegExp re, String path) {
134134
}
135135
}
136136

137-
final List<String> _areaLabels = List<String>.from(
137+
final List<String> _areaLabels = [for (var (label as String) in
138138
jsonDecode(
139139
File('static/sdk_labels.json').readAsStringSync(),
140-
) as List,
141-
)..removeWhere((label) => !label.startsWith('area-'));
140+
) as List)
141+
if (label.startsWith('area-') || label.startsWith('legacy-area-')) label];
142142

143143
final List<String> corePackages =
144144
parsePackageInfo(File('static/core_packages.csv'));

lib/server.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'dart:convert';
77
import 'dart:io';
88

99
import 'package:collection/collection.dart';
10-
import 'package:gcp/gcp.dart';
10+
import 'package:google_cloud/google_cloud.dart';
1111
import 'package:shelf/shelf.dart';
1212

1313
import 'redirect.dart';

0 commit comments

Comments
 (0)