Skip to content

Commit a0f72f5

Browse files
sigurdmCasey Hillers
authored andcommitted
Fix style issues (flutter#122586)
Follow-up to flutter#121802 resolving some style issues.
1 parent 885cc69 commit a0f72f5

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

dev/bots/prepare_package.dart

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ import 'package:platform/platform.dart' show LocalPlatform, Platform;
1717
import 'package:pool/pool.dart';
1818
import 'package:process/process.dart';
1919

20-
const String gobMirror =
21-
'https://flutter.googlesource.com/mirrors/flutter';
20+
const String gobMirror = 'https://flutter.googlesource.com/mirrors/flutter';
2221
const String githubRepo = 'https://github.com/flutter/flutter.git';
2322
const String mingitForWindowsUrl = 'https://storage.googleapis.com/flutter_infra_release/mingit/'
2423
'603511c649b00bbef0a6122a827ac419b656bc19/mingit.zip';
@@ -450,11 +449,9 @@ class ArchiveCreator {
450449
while (true) {
451450
retries-=1;
452451
try {
453-
final Uri packageListingUrl =
454-
Uri.parse('https://pub.dev/api/packages/$name');
452+
final Uri packageListingUrl = Uri.parse('https://pub.dev/api/packages/$name');
455453
// Fetch the package listing to obtain the package download url.
456-
final http.Response packageListingResponse =
457-
await client.get(packageListingUrl);
454+
final http.Response packageListingResponse = await client.get(packageListingUrl);
458455
if (packageListingResponse.statusCode != 200) {
459456
throw Exception('Downloading $packageListingUrl failed. Status code ${packageListingResponse.statusCode}.');
460457
}
@@ -511,8 +508,7 @@ class ArchiveCreator {
511508
}
512509
});
513510
}
514-
final Map<String, dynamic> cacheDescription =
515-
json.decode(await _runFlutter(<String>['pub', 'cache', 'list'])) as Map<String, dynamic>;
511+
final Map<String, dynamic> cacheDescription = json.decode(await _runFlutter(<String>['pub', 'cache', 'list'])) as Map<String, dynamic>;
516512
final Map<String, dynamic> packages = cacheDescription['packages'] as Map<String, dynamic>;
517513
final List<Future<void>> downloads = <Future<void>>[];
518514
for (final MapEntry<String, dynamic> package in packages.entries) {

0 commit comments

Comments
 (0)