Commit c76b9b64 authored by jybaek's avatar jybaek
Browse files

Remove Duplicate Processing

parent a5998d1f
...@@ -628,7 +628,6 @@ sds sdscatcolor(sds o, char *s, size_t len, char *color) { ...@@ -628,7 +628,6 @@ sds sdscatcolor(sds o, char *s, size_t len, char *color) {
int bold = strstr(color,"bold") != NULL; int bold = strstr(color,"bold") != NULL;
int ccode = 37; /* Defaults to white. */ int ccode = 37; /* Defaults to white. */
if (strstr(color,"red")) ccode = 31; if (strstr(color,"red")) ccode = 31;
else if (strstr(color,"red")) ccode = 31;
else if (strstr(color,"green")) ccode = 32; else if (strstr(color,"green")) ccode = 32;
else if (strstr(color,"yellow")) ccode = 33; else if (strstr(color,"yellow")) ccode = 33;
else if (strstr(color,"blue")) ccode = 34; else if (strstr(color,"blue")) ccode = 34;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment