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

Default to true when no exception flag [Bug #15987]

This commit is contained in:
Nobuyoshi Nakada 2019-07-11 21:05:25 +09:00
parent f74e23af32
commit 8745fa2ff0
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -2572,7 +2572,7 @@ opts_exception_p(VALUE opts)
if (!kwds[0]) { if (!kwds[0]) {
kwds[0] = rb_intern_const("exception"); kwds[0] = rb_intern_const("exception");
} }
rb_get_kwargs(opts, kwds, 0, 1, &exception); if (!rb_get_kwargs(opts, kwds, 0, 1, &exception)) return 1;
switch (exception) { switch (exception) {
case Qtrue: case Qfalse: case Qtrue: case Qfalse:
break; break;