File tree 2 files changed +4
-6
lines changed
test/commands.shard/hermetic 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1301,11 +1301,10 @@ abstract class FlutterCommand extends Command<void> {
1301
1301
if (shouldUpdateCache) {
1302
1302
// First always update universal artifacts, as some of these (e.g.
1303
1303
// ios-deploy on macOS) are required to determine `requiredArtifacts`.
1304
- bool offline;
1304
+ final bool offline;
1305
1305
if (argParser.options.containsKey ('offline' )) {
1306
1306
offline = boolArg ('offline' );
1307
- }
1308
- else {
1307
+ } else {
1309
1308
offline = false ;
1310
1309
}
1311
1310
await globals.cache.updateAll (< DevelopmentArtifact > {DevelopmentArtifact .universal}, offline: offline);
Original file line number Diff line number Diff line change @@ -40,10 +40,9 @@ class FakePub extends Fake implements Pub {
40
40
bool printProgress = true ,
41
41
}) async {
42
42
fs.directory (directory).childFile ('.packages' ).createSync ();
43
- if (offline == true ){
43
+ if (offline == true ) {
44
44
calledGetOffline += 1 ;
45
- }
46
- else {
45
+ } else {
47
46
calledOnline += 1 ;
48
47
}
49
48
}
You can’t perform that action at this time.
0 commit comments