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

Added a fallback return

This commit is contained in:
Nobuyoshi Nakada 2020-10-01 13:45:50 +09:00
parent 0d37ed5fdc
commit 257007af9a
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -43,6 +43,8 @@ rb_scheduler_close(VALUE scheduler)
if (rb_respond_to(scheduler, id_close)) {
return rb_funcall(scheduler, id_close, 0);
}
return Qnil;
}
VALUE