strip trailing spaces and adjusted indents [ci skip]
This commit is contained in:
parent
98de98fb70
commit
0d52dce3a3
20
cont.c
20
cont.c
@ -1825,19 +1825,19 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat)
|
|||||||
VALUE blocking = Qfalse;
|
VALUE blocking = Qfalse;
|
||||||
|
|
||||||
if (kw_splat != RB_NO_KEYWORDS) {
|
if (kw_splat != RB_NO_KEYWORDS) {
|
||||||
VALUE options = Qnil;
|
VALUE options = Qnil;
|
||||||
VALUE arguments[2] = {Qundef};
|
VALUE arguments[2] = {Qundef};
|
||||||
|
|
||||||
argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
|
argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
|
||||||
rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
|
rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
|
||||||
|
|
||||||
if (arguments[0] != Qundef) {
|
if (arguments[0] != Qundef) {
|
||||||
blocking = arguments[0];
|
blocking = arguments[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arguments[1] != Qundef) {
|
if (arguments[1] != Qundef) {
|
||||||
pool = arguments[1];
|
pool = arguments[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
|
return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user