Skip to content

Commit b572d07

Browse files
committed
Unwrap initial condition covered by the second block
Benchmark tells me there's virtually no difference in performance
1 parent ee10845 commit b572d07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/framework/src/Console/Commands/MakePublicationCommand.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ protected function captureTagFieldInput(PublicationField $field): array|string|n
169169
array_merge([$reloadMessage], $options->toArray()),
170170
multiple: true
171171
);
172-
} while (($selection === [$reloadMessage]) || in_array($reloadMessage, (array) $selection));
172+
} while (in_array($reloadMessage, (array) $selection));
173173

174174
return $selection;
175175
}

0 commit comments

Comments
 (0)