1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Adjust styles [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2021-12-24 19:52:44 +09:00
parent 0fbf1f193a
commit 4f74153846
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
3 changed files with 12 additions and 6 deletions

View file

@ -182,7 +182,8 @@ CREF_CLASS(const rb_cref_t *cref)
{
if (CREF_SINGLETON(cref)) {
return CLASS_OF(cref->klass_or_self);
} else {
}
else {
return cref->klass_or_self;
}
}
@ -192,7 +193,8 @@ CREF_CLASS_FOR_DEFINITION(const rb_cref_t *cref)
{
if (CREF_SINGLETON(cref)) {
return rb_singleton_class(cref->klass_or_self);
} else {
}
else {
return cref->klass_or_self;
}
}

3
file.c
View file

@ -2532,7 +2532,8 @@ rb_file_size(VALUE file)
}
return st.st_size;
} else {
}
else {
return NUM2OFFT(rb_funcall(file, idSize, 0));
}
}

9
io.c
View file

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