From ef00c6da884499c8fab8531a3780e547e87c04fa Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 26 Feb 2023 13:20:43 +0900 Subject: Adjust `else` style to be consistent in each files [ci skip] --- io.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'io.c') diff --git a/io.c b/io.c index 7b5c707884..76353cb6e0 100644 --- a/io.c +++ b/io.c @@ -1151,7 +1151,8 @@ io_internal_wait(VALUE thread, rb_io_t *fptr, int error, int events, struct time if (ready > 0) { return ready; - } else if (ready == 0) { + } + else if (ready == 0) { errno = ETIMEDOUT; return -1; } @@ -1179,7 +1180,8 @@ internal_read_func(void *ptr) if (io_again_p(errno)) { if (io_internal_wait(iis->th, iis->fptr, errno, RB_WAITFD_IN, iis->timeout) == -1) { return -1; - } else { + } + else { goto retry; } } @@ -1214,7 +1216,8 @@ internal_write_func(void *ptr) if (io_again_p(e)) { if (io_internal_wait(iis->th, iis->fptr, errno, RB_WAITFD_OUT, iis->timeout) == -1) { return -1; - } else { + } + else { goto retry; } } @@ -1243,7 +1246,8 @@ internal_writev_func(void *ptr) if (io_again_p(errno)) { if (io_internal_wait(iis->th, iis->fptr, errno, RB_WAITFD_OUT, iis->timeout) == -1) { return -1; - } else { + } + else { goto retry; } } -- cgit v1.2.1