Skip to content

Commit

Permalink
minor styling fix to fit our convention, and also reduce LOC diff
Browse files Browse the repository at this point in the history
  • Loading branch information
oranagra committed Jul 29, 2021
1 parent d0cb12c commit 8320dba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rio.c
Expand Up @@ -204,7 +204,8 @@ static size_t rioConnRead(rio *r, void *buf, size_t len) {
size_t toread = needs < PROTO_IOBUF_LEN ? PROTO_IOBUF_LEN: needs;
if (toread > sdsavail(r->io.conn.buf)) toread = sdsavail(r->io.conn.buf);
if (r->io.conn.read_limit != 0 &&
r->io.conn.read_so_far + buffered + toread > r->io.conn.read_limit) {
r->io.conn.read_so_far + buffered + toread > r->io.conn.read_limit)
{
toread = r->io.conn.read_limit - r->io.conn.read_so_far - buffered;
}
int retval = connRead(r->io.conn.conn,
Expand Down

0 comments on commit 8320dba

Please sign in to comment.