refactor: explicit condition check

This commit is contained in:
oSumAtrIX 2022-08-21 03:54:30 +02:00
parent 1f5063b66f
commit 33e150c40a
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -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();
}