Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c76b9b64
Commit
c76b9b64
authored
Oct 13, 2016
by
jybaek
Browse files
Remove Duplicate Processing
parent
a5998d1f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
c76b9b64
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment