mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 17:24:34 -05:00
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:
parent
dcc09747d2
commit
36e721d4a9
1 changed files with 1 additions and 1 deletions
|
@ -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 [];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue