mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
chore: removes redundant validation of $repeat, as it is the while condition. (#12521)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user