summaryrefslogtreecommitdiff
path: root/dir.c
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-11-22 21:49:54 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-12-02 01:19:55 +0900
commit040e0c8d671f86b20e2b929b4077fcc74aa55074 (patch)
tree2b807d5bc11e24295195acce6014ffbc8bb88eb3 /dir.c
parent2c939458cab06b4fda09b55a57b8bac30efe6b17 (diff)
downloadruby-040e0c8d671f86b20e2b929b4077fcc74aa55074.tar.gz
Reuse NIL_OR_UNDEF_P macro
Diffstat (limited to 'dir.c')
-rw-r--r--dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dir.c b/dir.c
index 4d6d80208c..3f73f83fc5 100644
--- a/dir.c
+++ b/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