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
hiredis
Commits
acc91754
Unverified
Commit
acc91754
authored
Oct 12, 2020
by
Michael Grunder
Committed by
GitHub
Oct 12, 2020
Browse files
Merge pull request #885 from gkorland/patch-1
clean a warning, remvoe empty else block
parents
b47fae4e
b086f763
Changes
1
Hide whitespace changes
Inline
Side-by-side
hiredis.c
View file @
acc91754
...
...
@@ -938,13 +938,11 @@ int redisBufferRead(redisContext *c) {
return
REDIS_ERR
;
nread
=
c
->
funcs
->
read
(
c
,
buf
,
sizeof
(
buf
));
if
(
nread
>
0
)
{
if
(
redisReaderFeed
(
c
->
reader
,
buf
,
nread
)
!=
REDIS_OK
)
{
__redisSetError
(
c
,
c
->
reader
->
err
,
c
->
reader
->
errstr
);
return
REDIS_ERR
;
}
else
{
}
}
else
if
(
nread
<
0
)
{
if
(
nread
<
0
)
{
return
REDIS_ERR
;
}
if
(
nread
>
0
&&
redisReaderFeed
(
c
->
reader
,
buf
,
nread
)
!=
REDIS_OK
)
{
__redisSetError
(
c
,
c
->
reader
->
err
,
c
->
reader
->
errstr
);
return
REDIS_ERR
;
}
return
REDIS_OK
;
...
...
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