Removed unnecessary ! in net.dart (#79010)

This commit is contained in:
Jenn Magder
2021-03-24 15:36:12 -07:00
committed by GitHub
parent 2eabb17215
commit b804117802

View File

@@ -138,9 +138,9 @@ class Net {
// If we're making a HEAD request, we're only checking to see if the URL is
// valid.
if (onlyHeaders) {
return response!.statusCode == HttpStatus.ok;
return response.statusCode == HttpStatus.ok;
}
if (response!.statusCode != HttpStatus.ok) {
if (response.statusCode != HttpStatus.ok) {
if (response.statusCode > 0 && response.statusCode < 500) {
throwToolExit(
'Download failed.\n'