mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-04-30 14:34:29 +02:00
refactor: explicit condition check
This commit is contained in:
parent
1f5063b66f
commit
33e150c40a
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user