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 {