From bf42f2e19d8bf710d149c6c6f7301fae2310ba41 Mon Sep 17 00:00:00 2001 From: Naz Date: Thu, 7 Aug 2025 13:22:12 +0100 Subject: =?UTF-8?q?=F0=9F=90=9Bfix:=20collapse=20nested=20if=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/downloader.rs | 8 ++++---- 1 file 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 -- cgit v1.2.3