mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Reuse NIL_OR_UNDEF_P macro
This commit is contained in:
parent
2c939458ca
commit
040e0c8d67
Notes:
git
2022-12-01 16:20:22 +00:00
4 changed files with 4 additions and 4 deletions
2
dir.c
2
dir.c
|
@ -2932,7 +2932,7 @@ dir_globs(VALUE args, VALUE base, int flags)
|
|||
static VALUE
|
||||
dir_glob_option_base(VALUE base)
|
||||
{
|
||||
if (UNDEF_P(base) || NIL_P(base)) {
|
||||
if (NIL_OR_UNDEF_P(base)) {
|
||||
return Qnil;
|
||||
}
|
||||
#if USE_OPENDIR_AT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue