fix(clippy): change `< 1` to .is_empty()

Replaced `args.len() < 1` with `args.is_empty()`.
This commit is contained in:
MedzikUser 2022-08-20 15:01:48 +02:00
parent db6e068926
commit 501cbc74b7
No known key found for this signature in database
GPG Key ID: A5FAC1E185C112DB
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ impl Command for Broadcast {
}
async fn execute(&self, client: &Client, args: Vec<&str>) -> anyhow::Result<()> {
if args.len() < 1 || args.join(" ").is_empty() {
if args.is_empty() || args.join(" ").is_empty() {
client.send("Missing message")?;
return Ok(());
}