Skip to content

Commit ad1fbde

Browse files
chore: removes redundant validation of $repeat, as it is the while condition. (#12521)
1 parent bd185c3 commit ad1fbde

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

run-tests.php

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -398,15 +398,13 @@ function main(): void
398398

399399
$is_switch = true;
400400

401-
if ($repeat) {
402-
foreach ($cfgtypes as $type) {
403-
if (strpos($switch, '--' . $type) === 0) {
404-
foreach ($cfgfiles as $file) {
405-
if ($switch == '--' . $type . '-' . $file) {
406-
$cfg[$type][$file] = true;
407-
$is_switch = false;
408-
break;
409-
}
401+
foreach ($cfgtypes as $type) {
402+
if (strpos($switch, '--' . $type) === 0) {
403+
foreach ($cfgfiles as $file) {
404+
if ($switch == '--' . $type . '-' . $file) {
405+
$cfg[$type][$file] = true;
406+
$is_switch = false;
407+
break;
410408
}
411409
}
412410
}

0 commit comments

Comments
 (0)