summaryrefslogtreecommitdiff
path: root/cont.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-26 13:20:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-02-26 13:20:43 +0900
commitef00c6da884499c8fab8531a3780e547e87c04fa (patch)
tree3a916b0415e1a3bebabb8ebc983bef3d37588ed2 /cont.c
parent672b81b090fb346b71f1c8e87a51a7c33f239df4 (diff)
downloadruby-ef00c6da884499c8fab8531a3780e547e87c04fa.tar.gz
Adjust `else` style to be consistent in each files [ci skip]
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/cont.c b/cont.c
index a932bebf41..f06f15476e 100644
--- a/cont.c
+++ b/cont.c
@@ -2094,7 +2094,8 @@ rb_fiber_storage_get(VALUE self)
if (storage == Qnil) {
return Qnil;
- } else {
+ }
+ else {
return rb_obj_dup(storage);
}
}
@@ -2204,7 +2205,8 @@ rb_fiber_storage_aset(VALUE class, VALUE key, VALUE value)
if (value == Qnil) {
return rb_hash_delete(storage, key);
- } else {
+ }
+ else {
return rb_hash_aset(storage, key, value);
}
}
@@ -2810,7 +2812,8 @@ rb_fiber_blocking(VALUE class)
// If we are already blocking, this is essentially a no-op:
if (fiber->blocking) {
return rb_yield(fiber_value);
- } else {
+ }
+ else {
return rb_ensure(fiber_blocking_yield, fiber_value, fiber_blocking_ensure, fiber_value);
}
}