diff options
author | Father Chrysostomos <sprout@cpan.org> | 2012-01-13 20:31:23 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2012-01-13 21:24:56 -0800 |
commit | 3888144c4854bb47165057c7e17c85416b7b15be (patch) | |
tree | 6911df1a1b98754574d2fbf210f4b768e3ada826 /doio.c | |
parent | 7b7309aff53f13fbc885bbe035da3e4ef8b481f4 (diff) | |
download | perl-3888144c4854bb47165057c7e17c85416b7b15be.tar.gz |
Squash repetitititive code in doio.c:my_stat_flags
Diffstat (limited to 'doio.c')
-rw-r--r-- | doio.c | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -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; |