diff options
| -rw-r--r-- | src/downloader.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/downloader.rs b/src/downloader.rs index b2b46a2..7828dda 100644 --- a/src/downloader.rs +++ b/src/downloader.rs @@ -34,10 +34,10 @@ impl Downloader { }); } - if let Some(len) = resp.content_length() { - if len < 1024 { - return Err(Error::InvalidAppImage); - } + if let Some(len) = resp.content_length() + && len < 1024 + { + return Err(Error::InvalidAppImage); } let content_type = resp |
