From e503a77cfb6e36ece8342e02b8bd157693fb2972 Mon Sep 17 00:00:00 2001 From: Robert Long Date: Wed, 4 Dec 2024 14:02:49 -0800 Subject: [PATCH] Fix linting errors --- plugins/http/src/commands.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/http/src/commands.rs b/plugins/http/src/commands.rs index b72dabe9..965ddd09 100644 --- a/plugins/http/src/commands.rs +++ b/plugins/http/src/commands.rs @@ -401,7 +401,7 @@ pub(crate) async fn fetch_read_body( match chunk { Ok(bytes) => { // Skip empty chunks - if bytes.len() > 0 { + if !bytes.is_empty() { channel.send(&bytes)?; } }