diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-24 19:52:44 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-12-24 21:17:27 +0900 |
commit | 4f74153846d951dd8ec66017f4e8e286df8ea925 (patch) | |
tree | 9a3139d78d8819a32af6e924abc9a431f81ab7ce /io.c | |
parent | 0fbf1f193a863a2aa2d69621b530668a268e539a (diff) |
Adjust styles [ci skip]
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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; } } |