summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2023-03-22 09:46:41 +0100
committerYves Orton <demerphq@gmail.com>2023-03-29 20:54:49 +0800
commitb22f2577edce6f40d11ab38436aa601bdbaba63b (patch)
treedc8c2c53c25bdd2197709f287a6c4bd567472c67 /regcomp.c
parentd3eb75f09d0fc0005b3a7e16f3742854fe3899f4 (diff)
downloadperl-b22f2577edce6f40d11ab38436aa601bdbaba63b.tar.gz
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.
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c5
1 files changed, 1 insertions, 4 deletions
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;
}
}