regcomp.c: Rmv unnecessary else
authorKarl Williamson <khw@cpan.org>
Sun, 14 Oct 2018 21:50:55 +0000 (15:50 -0600)
committerKarl Williamson <khw@cpan.org>
Sat, 20 Oct 2018 06:09:55 +0000 (00:09 -0600)
The 'if' if executed aborts, so control would never reach here unless
the 'else' would be taken.

regcomp.c

index 91928d3..443c3ff 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -16804,9 +16804,7 @@ S_regclass(pTHX_ RExC_state_t *pRExC_state, I32 *flagp, U32 depth,
                                         RExC_parse--;
                                         vFAIL("\\N{} in inverted character class or as a range end-point is restricted to one character");
                                     }
-                                    else {
-                                        ckWARNreg(RExC_parse, "Using just the first character returned by \\N{} in character class");
-                                    }
+                                    ckWARNreg(RExC_parse, "Using just the first character returned by \\N{} in character class");
                                     break; /* <value> contains the first code
                                               point. Drop out of the switch to
                                               process it */