Skip to content

Commit 56011b9

Browse files
committed
format
1 parent 50897e2 commit 56011b9

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/test/task/end2end_test.dart

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ void main() {
5555
expect(doc.querySelector('.self-crumb')!.text, contains('oxygen'));
5656
// Check that we don't have noindex on /latest/
5757
expect(
58-
doc.querySelectorAll('meta').where(
58+
doc
59+
.querySelectorAll('meta')
60+
.where(
5961
(m) =>
6062
m.attributes['name'] == 'robots' &&
6163
m.attributes['content'] == 'noindex',
@@ -131,8 +133,8 @@ Future<void> _traverseLinksUnderPath({
131133
final r = relativeTo.resolveUri(u);
132134
return r.path;
133135
};
134-
final isUnderRoots =
135-
(String path) => roots.any((root) => path.startsWith(root));
136+
final isUnderRoots = (String path) =>
137+
roots.any((root) => path.startsWith(root));
136138

137139
final visited = <String>{};
138140
// HTML pages to visit
@@ -150,8 +152,7 @@ Future<void> _traverseLinksUnderPath({
150152
final res = await issueGet(target.toString(), headers: _headers);
151153
if (res.statusCode == 303) {
152154
htmlQueue.addAll(
153-
[normalize(res.headers['location']!, target)]
154-
.nonNulls
155+
[normalize(res.headers['location']!, target)].nonNulls
155156
.whereNot(visited.contains)
156157
.whereNot(htmlQueue.contains)
157158
.whereNot(assetQueue.contains),

0 commit comments

Comments
 (0)