From ee1e7dfae96af5a426176f396ca3a23706033c45 Mon Sep 17 00:00:00 2001 From: Jokler Date: Fri, 13 Oct 2017 16:56:22 +0200 Subject: Remove now redundant check --- src/lib.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index cda4e39..c556a32 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -137,11 +137,6 @@ fn get_command(nick: &str, message: &Message) -> Option { .map(ToOwned::to_owned) .collect(); - // Check if the message contained nothing but spaces - if tokens.is_empty() { - return None; - } - // Commands start with our name if tokens[0].to_lowercase().starts_with(nick) { -- cgit v1.2.3-70-g09d2