Vertically compact code in aofWrite().

This commit is contained in:
antirez 2019-07-12 12:18:33 +02:00
parent 2a99f199bc
commit 54c4e7f86c

View File

@ -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;
}