mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +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;
|
||||
|
||||
if ($repeat) {
|
||||
foreach ($cfgtypes as $type) {
|
||||
if (strpos($switch, '--' . $type) === 0) {
|
||||
foreach ($cfgfiles as $file) {
|
||||
if ($switch == '--' . $type . '-' . $file) {
|
||||
$cfg[$type][$file] = true;
|
||||
$is_switch = false;
|
||||
break;
|
||||
}
|
||||
foreach ($cfgtypes as $type) {
|
||||
if (strpos($switch, '--' . $type) === 0) {
|
||||
foreach ($cfgfiles as $file) {
|
||||
if ($switch == '--' . $type . '-' . $file) {
|
||||
$cfg[$type][$file] = true;
|
||||
$is_switch = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue