- remove: unnecessary return in route_packet

This commit is contained in:
2024-11-26 13:18:32 -05:00
parent 889fde4636
commit 20e86dd117

View File

@@ -8,6 +8,6 @@ pub async fn route_packet(data: &[u8]) -> Result<(), Box<dyn Error>> {
match packet.packet_type {
// 1 => chat::handle_chat(packet).await?,
// 2 => movement::handle_movement(packet).await?,
_ => return Err("Unknown packet type".into()),
_ => Err("Unknown packet type".into()),
}
}