Code

Remove unnecessary braces
authorJonas Fonseca <fonseca@diku.dk>
Sun, 3 Oct 2010 23:59:17 +0000 (19:59 -0400)
committerJonas Fonseca <fonseca@diku.dk>
Sun, 3 Oct 2010 23:59:17 +0000 (19:59 -0400)
tig.c

diff --git a/tig.c b/tig.c
index 390923adb7121a767b4c68c79ba035d08f8b2370..f336a699142353766ae2f4c083544d6dbddeac49 100644 (file)
--- 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;
        }