From f974d37db4bb733964fa4bf9cd31c8b4209dbb18 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Thu, 21 May 2020 11:30:13 -0600 Subject: [PATCH] regcomp.c: Move some code to within a block This code is irrelevant unless the condition of the block immediately before it is TRUE, so move it to within that block. --- regcomp.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/regcomp.c b/regcomp.c index e51dd52948a7..6a498751e6c5 100644 --- a/regcomp.c +++ b/regcomp.c @@ -19344,16 +19344,16 @@ S_optimize_regclass(pTHX_ single_range = TRUE; } invlist_iterfinish(cp_list); - } - /* If we know at compile time that this matches every possible code point, - * any run-time dependencies don't matter */ - if (start[0] == 0 && end[0] == UV_MAX) { - if (*invert) { - goto return_OPFAIL; - } - else { - goto return_SANY; + /* If we know at compile time that this matches every possible code + * point, any run-time dependencies don't matter */ + if (start[0] == 0 && end[0] == UV_MAX) { + if (*invert) { + goto return_OPFAIL; + } + else { + goto return_SANY; + } } }