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:
parent
f74e23af32
commit
8745fa2ff0
1 changed files with 1 additions and 1 deletions
|
@ -2572,7 +2572,7 @@ opts_exception_p(VALUE opts)
|
|||
if (!kwds[0]) {
|
||||
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) {
|
||||
case Qtrue: case Qfalse:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue