summaryrefslogtreecommitdiff
path: root/src/downloader.rs
diff options
context:
space:
mode:
authorNaz <ndpm13@ch-naseem.com>2025-08-07 13:22:12 +0100
committerNaz <ndpm13@ch-naseem.com>2025-08-07 13:22:12 +0100
commitbf42f2e19d8bf710d149c6c6f7301fae2310ba41 (patch)
treed56070c6d5124a072968dc00c2c73874303f74d1 /src/downloader.rs
parentd22690ad41e90c5f34c587e75994e865c2395912 (diff)
🐛fix: collapse nested if block
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