This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Perl_sv_vcatpvfn_flags: join two if blocks
authorDavid Mitchell <davem@iabyn.com>
Fri, 26 May 2017 23:07:48 +0000 (00:07 +0100)
committerDavid Mitchell <davem@iabyn.com>
Wed, 7 Jun 2017 08:11:05 +0000 (09:11 +0100)
convert if (x); if (!x); into an single if/else

sv.c

diff --git a/sv.c b/sv.c
index 1c1df1b..b384c50 100644 (file)
--- a/sv.c
+++ b/sv.c
@@ -12214,8 +12214,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
                veclen = 0;
            }
        }
-
-       if (!vectorize && !args) {
+        else if (!args) {
            if (efix) {
                const I32 i = efix-1;
                 FETCH_VCATPVFN_ARGUMENT(argsv, i >= 0 && i < svmax, svargs[i]);