Unverified Commit b8041178 authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Removed unnecessary ! in net.dart (#79010)

parent 2eabb172
......@@ -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'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment