mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-28 15:40:48 +00: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