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,7 +398,6 @@ function main(): void
|
|||
|
||||
$is_switch = true;
|
||||
|
||||
if ($repeat) {
|
||||
foreach ($cfgtypes as $type) {
|
||||
if (strpos($switch, '--' . $type) === 0) {
|
||||
foreach ($cfgfiles as $file) {
|
||||
|
@ -410,7 +409,6 @@ function main(): void
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!$is_switch) {
|
||||
$is_switch = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue