rustfmt issues

This commit is contained in:
tommy 2019-07-14 13:39:27 -04:00
parent 52b65d5938
commit 6d8eea5085

View File

@ -433,9 +433,8 @@ fn handle_killnpcs(server: &mut Server, entity: EcsEntity, _args: String, _actio
.map(|s| s.health.set_to(0, comp::HealthSource::Command));
}
let text = if npclist.len() > 0 {
format!("Destroyed {} NPCs.",npclist.len())
}
else {
format!("Destroyed {} NPCs.", npclist.len())
} else {
"No NPCs on server.".to_string()
};
server.clients.notify(entity, ServerMsg::Chat(text));