mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04: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';
|
import { Loglevel } from './loglevel.enum';
|
||||||
|
|
||||||
export function toArrayConfig(configValue: string, separator = ','): string[] {
|
export function toArrayConfig(configValue?: string, separator = ','): string[] {
|
||||||
if (!configValue) {
|
if (!configValue) {
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue