summaryrefslogtreecommitdiff
path: root/src/downloader.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloader.rs')
-rw-r--r--src/downloader.rs8
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