From 040e0c8d671f86b20e2b929b4077fcc74aa55074 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Tue, 22 Nov 2022 21:49:54 +0900 Subject: Reuse NIL_OR_UNDEF_P macro --- dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dir.c') 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 -- cgit v1.2.1