[flutter_tools] Handle empty gzip file on Windows (#54679)

* [flutter_tools] Handle empty gzip file on Windows

* Update packages/flutter_tools/test/general.shard/base/os_test.dart

Co-Authored-By: Jonah Williams <jonahwilliams@google.com>

* Update packages/flutter_tools/test/general.shard/base/os_test.dart

Co-Authored-By: Jonah Williams <jonahwilliams@google.com>

* Update packages/flutter_tools/test/general.shard/base/os_test.dart

Co-Authored-By: Jonah Williams <jonahwilliams@google.com>

Co-authored-by: Jonah Williams <jonahwilliams@google.com>
This commit is contained in:
Zachary Anderson
2020-04-14 09:42:26 -07:00
committed by GitHub
parent 9cc69d47a5
commit 57dd045cef
2 changed files with 59 additions and 0 deletions

View File

@@ -362,6 +362,8 @@ class _WindowsUtils extends OperatingSystemUtils {
return false;
} on ArchiveException catch (_) {
return false;
} on RangeError catch (_) {
return false;
}
return true;
}