diff options
author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2022-11-22 21:49:54 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-12-02 01:19:55 +0900 |
commit | 040e0c8d671f86b20e2b929b4077fcc74aa55074 (patch) | |
tree | 2b807d5bc11e24295195acce6014ffbc8bb88eb3 /dir.c | |
parent | 2c939458cab06b4fda09b55a57b8bac30efe6b17 (diff) | |
download | ruby-040e0c8d671f86b20e2b929b4077fcc74aa55074.tar.gz |
Reuse NIL_OR_UNDEF_P macro
Diffstat (limited to 'dir.c')
-rw-r--r-- | dir.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |