From: Jani Nikula Date: Sun, 1 Oct 2017 20:53:21 +0000 (+0300) Subject: cli: reduce indent in keyword argument processing X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=288c3660d8798141d86faee30b4394a450dda0ba;p=notmuch.git cli: reduce indent in keyword argument processing Reducing indent makes future changes easier. No functional changes. --- diff --git a/command-line-arguments.c b/command-line-arguments.c index c591dcbe..3fa8d904 100644 --- a/command-line-arguments.c +++ b/command-line-arguments.c @@ -21,13 +21,15 @@ _process_keyword_arg (const notmuch_opt_desc_t *arg_desc, char next, const char } for (keywords = arg_desc->keywords; keywords->name; keywords++) { - if (strcmp (arg_str, keywords->name) == 0) { - if (arg_desc->opt_flags) - *arg_desc->opt_flags |= keywords->value; - else - *arg_desc->opt_keyword = keywords->value; - return TRUE; - } + if (strcmp (arg_str, keywords->name) != 0) + continue; + + if (arg_desc->opt_flags) + *arg_desc->opt_flags |= keywords->value; + else + *arg_desc->opt_keyword = keywords->value; + + return TRUE; } if (next != '\0') fprintf (stderr, "Unknown keyword argument \"%s\" for option \"%s\".\n", arg_str, arg_desc->name);