lib/colors: remove redundant if statement
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
9abc8a42aa
commit
cc7ffe129d
|
@ -662,11 +662,9 @@ static int colors_terminal_is_ready(void)
|
|||
if (setupterm(NULL, STDOUT_FILENO, &ret) != 0 || ret != 1)
|
||||
goto none;
|
||||
ncolors = tigetnum("colors");
|
||||
if (ncolors <= 2)
|
||||
goto none;
|
||||
}
|
||||
#endif
|
||||
if (ncolors != -1) {
|
||||
if (1 < ncolors) {
|
||||
DBG(CONF, ul_debug("terminal is ready (supports %d colors)", ncolors));
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue