From b22f2577edce6f40d11ab38436aa601bdbaba63b Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Wed, 22 Mar 2023 09:46:41 +0100 Subject: regcomp.c - simplify logic to eliminate unreached code We always goto out of this if, so eliminate the unreached code and also eliminate the useless else block. --- regcomp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'regcomp.c') diff --git a/regcomp.c b/regcomp.c index 5d30cbbbb4..612f6aabd9 100644 --- a/regcomp.c +++ b/regcomp.c @@ -11247,10 +11247,7 @@ S_optimize_regclass(pTHX_ if (*invert) { goto return_OPFAIL; } - else { - goto return_SANY; - } - return op; + goto return_SANY; } } -- cgit v1.2.1