summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-24 19:52:44 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-12-24 21:17:27 +0900
commit4f74153846d951dd8ec66017f4e8e286df8ea925 (patch)
tree9a3139d78d8819a32af6e924abc9a431f81ab7ce /io.c
parent0fbf1f193a863a2aa2d69621b530668a268e539a (diff)
Adjust styles [ci skip]
Diffstat (limited to 'io.c')
-rw-r--r--io.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/io.c b/io.c
index 957d36aa22..f104ff5371 100644
--- a/io.c
+++ b/io.c
@@ -1325,7 +1325,8 @@ rb_io_wait(VALUE io, VALUE events, VALUE timeout)
if (ready) {
return RB_INT2NUM(ready);
- } else {
+ }
+ else {
return Qfalse;
}
}
@@ -1493,7 +1494,8 @@ rb_io_maybe_wait_readable(int error, VALUE io, VALUE timeout)
if (RTEST(result)) {
return RB_NUM2INT(result);
- } else {
+ }
+ else {
return 0;
}
}
@@ -1505,7 +1507,8 @@ rb_io_maybe_wait_writable(int error, VALUE io, VALUE timeout)
if (RTEST(result)) {
return RB_NUM2INT(result);
- } else {
+ }
+ else {
return 0;
}
}