chore: removes redundant validation of $repeat, as it is the while condition. (#12521)

This commit is contained in:
Marcos Marcolin 2023-10-27 05:15:16 -03:00 committed by GitHub
parent bd185c3dd5
commit ad1fbde7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;