Simplify check

Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
Sebastian Ramacher 2016-05-01 18:26:29 +02:00
parent 67d1131bbb
commit 0069ef2860

View file

@ -127,7 +127,7 @@ cmd_marks_add(girara_session_t* session, girara_list_t* argument_list)
return false;
}
if (strlen(key_string) < 1 || strlen(key_string) > 1) {
if (strlen(key_string) != 1) {
return false;
}