mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
chore: removes redundant validation of $repeat, as it is the while condition. (#12521)
This commit is contained in:
parent
bd185c3dd5
commit
ad1fbde7c8
1 changed files with 7 additions and 9 deletions
|
@ -398,15 +398,13 @@ function main(): void
|
||||||
|
|
||||||
$is_switch = true;
|
$is_switch = true;
|
||||||
|
|
||||||
if ($repeat) {
|
foreach ($cfgtypes as $type) {
|
||||||
foreach ($cfgtypes as $type) {
|
if (strpos($switch, '--' . $type) === 0) {
|
||||||
if (strpos($switch, '--' . $type) === 0) {
|
foreach ($cfgfiles as $file) {
|
||||||
foreach ($cfgfiles as $file) {
|
if ($switch == '--' . $type . '-' . $file) {
|
||||||
if ($switch == '--' . $type . '-' . $file) {
|
$cfg[$type][$file] = true;
|
||||||
$cfg[$type][$file] = true;
|
$is_switch = false;
|
||||||
$is_switch = false;
|
break;
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue