summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-27 18:42:27 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-27 18:42:27 +0900
commitf42230ff2210647d480d02a381065359be993015 (patch)
treeb56f825079885aa90cb274bf76a602bafdeec0e8 /io.c
parent8b9d4b2ce64d496454428292b8d723878906c966 (diff)
Adjust styles [ci skip]
Diffstat (limited to 'io.c')
-rw-r--r--io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/io.c b/io.c
index 34ccf24977..de09a97798 100644
--- a/io.c
+++ b/io.c
@@ -1224,7 +1224,8 @@ io_flush_buffer(rb_io_t *fptr)
{
if (!NIL_P(fptr->write_lock) && rb_mutex_owned_p(fptr->write_lock)) {
return (int)io_flush_buffer_async((VALUE)fptr);
- } else {
+ }
+ else {
return (int)rb_mutex_synchronize(fptr->write_lock, io_flush_buffer_async, (VALUE)fptr);
}
}
@@ -1699,7 +1700,8 @@ io_binwrite(VALUE str, const char *ptr, long len, rb_io_t *fptr, int nosync)
else {
return io_binwrite_string((VALUE)&arg);
}
- } else {
+ }
+ else {
if (fptr->wbuf.off) {
if (fptr->wbuf.len)
MEMMOVE(fptr->wbuf.ptr, fptr->wbuf.ptr+fptr->wbuf.off, char, fptr->wbuf.len);