From: Jonas Fonseca Date: Sun, 3 Oct 2010 23:59:17 +0000 (-0400) Subject: Remove unnecessary braces X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4cf7c37fccfcbeb4eabdb71db210e032c4564b4a;p=tig.git Remove unnecessary braces --- diff --git a/tig.c b/tig.c index 390923a..f336a69 100644 --- a/tig.c +++ b/tig.c @@ -1916,24 +1916,21 @@ option_color_command(int argc, const char *argv[]) }; int index; - if (!map_enum(&index, obsolete, argv[0])) { + if (!map_enum(&index, obsolete, argv[0])) return OPT_ERR_UNKNOWN_COLOR_NAME; - } info = &line_info[index]; } if (!set_color(&info->fg, argv[1]) || - !set_color(&info->bg, argv[2])) { + !set_color(&info->bg, argv[2])) return OPT_ERR_UNKNOWN_COLOR; - } info->attr = 0; while (argc-- > 3) { int attr; - if (!set_attribute(&attr, argv[argc])) { + if (!set_attribute(&attr, argv[argc])) return OPT_ERR_UNKNOWN_ATTRIBUTE; - } info->attr |= attr; }