summaryrefslogtreecommitdiff
path: root/doio.c
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2012-01-13 20:31:23 -0800
committerFather Chrysostomos <sprout@cpan.org>2012-01-13 21:24:56 -0800
commit3888144c4854bb47165057c7e17c85416b7b15be (patch)
tree6911df1a1b98754574d2fbf210f4b768e3ada826 /doio.c
parent7b7309aff53f13fbc885bbe035da3e4ef8b481f4 (diff)
downloadperl-3888144c4854bb47165057c7e17c85416b7b15be.tar.gz
Squash repetitititive code in doio.c:my_stat_flags
Diffstat (limited to 'doio.c')
-rw-r--r--doio.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/doio.c b/doio.c
index 7f3160d96c..b0c5a690c5 100644
--- a/doio.c
+++ b/doio.c
@@ -1285,16 +1285,11 @@ Perl_my_stat_flags(pTHX_ const U32 flags)
return (PL_laststatval = PerlLIO_fstat(PerlIO_fileno(IoIFP(io)), &PL_statcache));
} else if (IoDIRP(io)) {
return (PL_laststatval = PerlLIO_fstat(my_dirfd(IoDIRP(io)), &PL_statcache));
- } else {
- PL_laststatval = -1;
- report_evil_fh(gv);
- return -1;
}
- } else {
- PL_laststatval = -1;
- report_evil_fh(gv);
- return -1;
}
+ PL_laststatval = -1;
+ report_evil_fh(gv);
+ return -1;
}
else if (PL_op->op_private & OPpFT_STACKED) {
return PL_laststatval;