diff options
| author | Naz <ndpm13@ch-naseem.com> | 2025-08-07 13:22:12 +0100 |
|---|---|---|
| committer | Naz <ndpm13@ch-naseem.com> | 2025-08-07 13:22:12 +0100 |
| commit | bf42f2e19d8bf710d149c6c6f7301fae2310ba41 (patch) | |
| tree | d56070c6d5124a072968dc00c2c73874303f74d1 /src | |
| parent | d22690ad41e90c5f34c587e75994e865c2395912 (diff) | |
🐛fix: collapse nested if block
Diffstat (limited to 'src')
| -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 |
