summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorDavid Mitchell <davem@iabyn.com>2017-04-13 11:53:35 +0100
committerDavid Mitchell <davem@iabyn.com>2017-04-18 12:58:32 +0100
commit13e8e86634c636913120ec966070c3f59eedcb29 (patch)
tree9b5b2cc03620e0fdb727566e2d8bb7f528e48482 /pp_ctl.c
parentf0dea69ccb41c8ee0d9ed8ec7a0dc107daacde11 (diff)
downloadperl-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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index f7470007da..072f5294a4 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -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;
}
- }
}
}
}