Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
f42fcff6
Commit
f42fcff6
authored
May 15, 2015
by
antirez
Browse files
Rewrite smoveCommand test with ternary operator
parent
19382c8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/t_set.c
View file @
f42fcff6
...
...
@@ -321,10 +321,7 @@ void smoveCommand(redisClient *c) {
/* If srcset and dstset are equal, SMOVE is a no-op */
if
(
srcset
==
dstset
)
{
if
(
setTypeIsMember
(
srcset
,
ele
))
addReply
(
c
,
shared
.
cone
);
else
addReply
(
c
,
shared
.
czero
);
addReply
(
c
,
setTypeIsMember
(
srcset
,
ele
)
?
shared
.
cone
:
shared
.
czero
);
return
;
}
...
...
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