summaryrefslogtreecommitdiff
path: root/src/pubsub.c
diff options
context:
space:
mode:
authorGengliang Wang <ltnwgl@gmail.com>2013-03-05 00:47:05 +0800
committerantirez <antirez@gmail.com>2013-03-06 16:49:20 +0100
commit042ed270c83d91c3dfd6f63db092f4ef8fb0c1a8 (patch)
tree1f9204ec70d9997dec1b23551eadc6990fde2ddd /src/pubsub.c
parent7b190a08cfe9aded4c64b775fa2a2ab24b7b9405 (diff)
downloadredis-042ed270c83d91c3dfd6f63db092f4ef8fb0c1a8.tar.gz
Removed useless "return" statements in pubsub.c
(original commit message edited)
Diffstat (limited to 'src/pubsub.c')
-rw-r--r--src/pubsub.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/pubsub.c b/src/pubsub.c
index 8fa33664f..524cb9c5a 100644
--- a/src/pubsub.c
+++ b/src/pubsub.c
@@ -278,7 +278,6 @@ void subscribeCommand(redisClient *c) {
void unsubscribeCommand(redisClient *c) {
if (c->argc == 1) {
pubsubUnsubscribeAllChannels(c,1);
- return;
} else {
int j;
@@ -297,7 +296,6 @@ void psubscribeCommand(redisClient *c) {
void punsubscribeCommand(redisClient *c) {
if (c->argc == 1) {
pubsubUnsubscribeAllPatterns(c,1);
- return;
} else {
int j;