mirror of
https://github.com/redis/redis.git
synced 2026-03-23 03:03:20 -04:00
delete redundancy color judge in sdscatcolor
This commit is contained in:
parent
88894c7aa6
commit
b21667c70e
1 changed files with 0 additions and 1 deletions
|
|
@ -498,7 +498,6 @@ sds sdscatcolor(sds o, char *s, size_t len, char *color) {
|
|||
int bold = strstr(color,"bold") != NULL;
|
||||
int ccode = 37; /* Defaults to white. */
|
||||
if (strstr(color,"red")) ccode = 31;
|
||||
else if (strstr(color,"red")) ccode = 31;
|
||||
else if (strstr(color,"green")) ccode = 32;
|
||||
else if (strstr(color,"yellow")) ccode = 33;
|
||||
else if (strstr(color,"blue")) ccode = 34;
|
||||
|
|
|
|||
Loading…
Reference in a new issue