mirror of
https://github.com/redstrate/Kawari.git
synced 2025-06-30 19:57:46 +00:00
Address warning: "unneeded return
statement"
This commit is contained in:
parent
89aee8e5d8
commit
32d978d82b
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ impl ChatHandler {
|
||||||
}
|
}
|
||||||
|
|
||||||
let parts: Vec<&str> = chat_message.message.split(' ').collect();
|
let parts: Vec<&str> = chat_message.message.split(' ').collect();
|
||||||
return match parts[0] {
|
match parts[0] {
|
||||||
"!spawnnpc" => {
|
"!spawnnpc" => {
|
||||||
connection
|
connection
|
||||||
.handle
|
.handle
|
||||||
|
@ -93,6 +93,6 @@ impl ChatHandler {
|
||||||
true
|
true
|
||||||
}
|
}
|
||||||
_ => false,
|
_ => false,
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue