mirror of
https://github.com/revanced/revanced-discord-bot.git
synced 2025-04-30 22:44:26 +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)
|
.cure(&name)
|
||||||
.replace(|c: char| !(c == ' ' || c.is_ascii_alphanumeric()), "");
|
.replace(|c: char| !(c == ' ' || c.is_ascii_alphanumeric()), "");
|
||||||
|
|
||||||
if cured_name.len() == 0 {
|
if cured_name.is_empty() {
|
||||||
cured_name = "ReVanced user".to_string();
|
cured_name = "ReVanced user".to_string();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user