Commit 1201d51e authored by nanahira's avatar nanahira

fix

parent 55af5b5a
Pipeline #43118 passed with stages
in 2 minutes and 31 seconds
......@@ -9,6 +9,6 @@ export class ConfigService {
key: K,
defaultValue?: D,
): D extends string ? Config[K] | D : Config[K] | undefined {
return (this.config[key] || defaultValue || undefined) as any;
return (this.config[key] || (defaultValue ?? undefined)) as any;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment