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
042ed270
Commit
042ed270
authored
Mar 05, 2013
by
Gengliang Wang
Committed by
antirez
Mar 06, 2013
Browse files
Removed useless "return" statements in pubsub.c
(original commit message edited)
parent
7b190a08
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/pubsub.c
View file @
042ed270
...
@@ -278,7 +278,6 @@ void subscribeCommand(redisClient *c) {
...
@@ -278,7 +278,6 @@ void subscribeCommand(redisClient *c) {
void
unsubscribeCommand
(
redisClient
*
c
)
{
void
unsubscribeCommand
(
redisClient
*
c
)
{
if
(
c
->
argc
==
1
)
{
if
(
c
->
argc
==
1
)
{
pubsubUnsubscribeAllChannels
(
c
,
1
);
pubsubUnsubscribeAllChannels
(
c
,
1
);
return
;
}
else
{
}
else
{
int
j
;
int
j
;
...
@@ -297,7 +296,6 @@ void psubscribeCommand(redisClient *c) {
...
@@ -297,7 +296,6 @@ void psubscribeCommand(redisClient *c) {
void
punsubscribeCommand
(
redisClient
*
c
)
{
void
punsubscribeCommand
(
redisClient
*
c
)
{
if
(
c
->
argc
==
1
)
{
if
(
c
->
argc
==
1
)
{
pubsubUnsubscribeAllPatterns
(
c
,
1
);
pubsubUnsubscribeAllPatterns
(
c
,
1
);
return
;
}
else
{
}
else
{
int
j
;
int
j
;
...
...
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