From 4cf7c37fccfcbeb4eabdb71db210e032c4564b4a Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sun, 3 Oct 2010 19:59:17 -0400 Subject: [PATCH] Remove unnecessary braces --- tig.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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; } -- 2.30.2