From afbbd00196aeef3d0eb66a8848daf6cb641dc610 Mon Sep 17 00:00:00 2001 From: noriaki watanabe Date: Sat, 24 May 2025 09:34:37 +0900 Subject: [PATCH] Simplify is_http method by returning the boolean expression directly --- core/src/url.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/src/url.rs b/core/src/url.rs index 7d56a2c..e07c363 100644 --- a/core/src/url.rs +++ b/core/src/url.rs @@ -43,10 +43,7 @@ impl Url { } fn is_http(&self) -> bool { - if self.url.contains("http://") { - return true; - } - false + self.url.contains("http://") } fn extract_host(&self) -> String {