Skip to content

Commit 1cb3b8d

Browse files
Restore original style for blocking/pool assignments in rb_fiber_initialize_kw
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent ccd130a commit 1cb3b8d

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

cont.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2438,8 +2438,14 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat)
24382438
argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
24392439
rb_get_kwargs(options, fiber_initialize_keywords, 0, 4, arguments);
24402440

2441-
if (!UNDEF_P(arguments[0])) blocking = arguments[0];
2442-
if (!UNDEF_P(arguments[1])) pool = arguments[1];
2441+
if (!UNDEF_P(arguments[0])) {
2442+
blocking = arguments[0];
2443+
}
2444+
2445+
if (!UNDEF_P(arguments[1])) {
2446+
pool = arguments[1];
2447+
}
2448+
24432449
storage = arguments[2];
24442450
quantum = arguments[3];
24452451
}

0 commit comments

Comments
 (0)