summaryrefslogtreecommitdiff
path: root/src/aof.c
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2019-07-12 12:18:33 +0200
committerantirez <antirez@gmail.com>2019-07-12 12:18:33 +0200
commit54c4e7f86c280f6a3050fdce17039c1572124007 (patch)
tree13c707a706bd3be2e2a70e0cdbfeffdbbbf1584e /src/aof.c
parent2a99f199bc806a5659c4d7ce0ea588c4ea6c1f6d (diff)
downloadredis-54c4e7f86c280f6a3050fdce17039c1572124007.tar.gz
Vertically compact code in aofWrite().
Diffstat (limited to 'src/aof.c')
-rw-r--r--src/aof.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/aof.c b/src/aof.c
index 565ee8073..ae9c4bb68 100644
--- a/src/aof.c
+++ b/src/aof.c
@@ -303,9 +303,7 @@ ssize_t aofWrite(int fd, const char *buf, size_t len) {
nwritten = write(fd, buf, len);
if (nwritten < 0) {
- if (errno == EINTR) {
- continue;
- }
+ if (errno == EINTR) continue;
return totwritten ? totwritten : -1;
}