From 33e150c40a00dd072419673e8b715280e7b3dab1 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Sun, 21 Aug 2022 03:54:30 +0200 Subject: [PATCH] refactor: explicit condition check --- src/utils/decancer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/decancer.rs b/src/utils/decancer.rs index dec7789..29a6e98 100644 --- a/src/utils/decancer.rs +++ b/src/utils/decancer.rs @@ -26,7 +26,7 @@ pub async fn cure( .cure(&name) .replace(|c: char| !(c == ' ' || c.is_ascii_alphanumeric()), ""); - if cured_name.len() == 0 { + if cured_name.is_empty() { cured_name = "ReVanced user".to_string(); }