Config Utils: Fix type of toArrayConfig

configValue is checked for a nullish value,
the type should reflect that.

Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
David Mehren 2021-04-29 15:26:15 +02:00
parent dcc09747d2
commit 36e721d4a9
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -6,7 +6,7 @@
import { Loglevel } from './loglevel.enum';
export function toArrayConfig(configValue: string, separator = ','): string[] {
export function toArrayConfig(configValue?: string, separator = ','): string[] {
if (!configValue) {
return [];
}