diff options
author | David Mitchell <davem@iabyn.com> | 2017-04-13 11:53:35 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2017-04-18 12:58:32 +0100 |
commit | 13e8e86634c636913120ec966070c3f59eedcb29 (patch) | |
tree | 9b5b2cc03620e0fdb727566e2d8bb7f528e48482 /pp_ctl.c | |
parent | f0dea69ccb41c8ee0d9ed8ec7a0dc107daacde11 (diff) | |
download | perl-13e8e86634c636913120ec966070c3f59eedcb29.tar.gz |
S_require_file() : simplify an else if block
change
if (...) {
...
}
else {
if (...) {
...
}
}
to
if (...) {
...
}
else if (...) {
...
}
Should make no functional difference
Diffstat (limited to 'pp_ctl.c')
-rw-r--r-- | pp_ctl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3997,8 +3997,9 @@ S_require_file(pTHX_ SV *sv) filter_sub = NULL; } } - else { - if (path_searchable) { + else if (path_searchable) { + /* match against a plain @INC element (non-searchable + * paths are only matched against refs in @INC) */ const char *dir; STRLEN dirlen; @@ -4078,7 +4079,6 @@ S_require_file(pTHX_ SV *sv) */ break; } - } } } } |