Skip to content

Commit

Permalink
Fix style issues (flutter#122586)
Browse files Browse the repository at this point in the history
Follow-up to flutter#121802 resolving some style issues.
  • Loading branch information
sigurdm authored May 16, 2023
1 parent 5df903a commit 788ceb3
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dev/bots/prepare_package.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import 'package:platform/platform.dart' show LocalPlatform, Platform;
import 'package:pool/pool.dart';
import 'package:process/process.dart';

const String gobMirror =
'https://flutter.googlesource.com/mirrors/flutter';
const String gobMirror = 'https://flutter.googlesource.com/mirrors/flutter';
const String githubRepo = 'https://github.com/flutter/flutter.git';
const String mingitForWindowsUrl = 'https://storage.googleapis.com/flutter_infra_release/mingit/'
'603511c649b00bbef0a6122a827ac419b656bc19/mingit.zip';
Expand Down Expand Up @@ -450,11 +449,9 @@ class ArchiveCreator {
while (true) {
retries-=1;
try {
final Uri packageListingUrl =
Uri.parse('https://pub.dev/api/packages/$name');
final Uri packageListingUrl = Uri.parse('https://pub.dev/api/packages/$name');
// Fetch the package listing to obtain the package download url.
final http.Response packageListingResponse =
await client.get(packageListingUrl);
final http.Response packageListingResponse = await client.get(packageListingUrl);
if (packageListingResponse.statusCode != 200) {
throw Exception('Downloading $packageListingUrl failed. Status code ${packageListingResponse.statusCode}.');
}
Expand Down Expand Up @@ -511,8 +508,7 @@ class ArchiveCreator {
}
});
}
final Map<String, dynamic> cacheDescription =
json.decode(await _runFlutter(<String>['pub', 'cache', 'list'])) as Map<String, dynamic>;
final Map<String, dynamic> cacheDescription = json.decode(await _runFlutter(<String>['pub', 'cache', 'list'])) as Map<String, dynamic>;
final Map<String, dynamic> packages = cacheDescription['packages'] as Map<String, dynamic>;
final List<Future<void>> downloads = <Future<void>>[];
for (final MapEntry<String, dynamic> package in packages.entries) {
Expand Down

0 comments on commit 788ceb3

Please sign in to comment.