mruby-task: combine variable declaration with initialization

This commit is contained in:
Yukihiro "Matz" Matsumoto
2025-10-26 19:05:01 +09:00
parent 00e7474cce
commit def463962e
+1 -3
View File
@@ -544,9 +544,7 @@ static mrb_value
mrb_f_sleep(mrb_state *mrb, mrb_value self)
{
mrb_float sec = 0;
mrb_int n;
n = mrb_get_args(mrb, "|f", &sec);
mrb_int n = mrb_get_args(mrb, "|f", &sec);
if (n == 0) {
/* No argument - suspend indefinitely */