Removing unnecessary null und undefined check.

This commit is contained in:
Kristoffer Schneider 2025-08-06 11:47:51 +02:00
parent d34d1ebf70
commit 5488f0e5ee

View File

@ -30,11 +30,7 @@ export const Citations: QuartzTransformerPlugin<Partial<Options>> = (userOpts) =
// thus, we optimistically assume there is indeed an appropriate
// locale available and simply create the lang url-string
let lang: string = "en-US"
if (
ctx.cfg.configuration.locale !== null &&
ctx.cfg.configuration.locale !== undefined &&
ctx.cfg.configuration.locale !== "en-US"
) {
if (ctx.cfg.configuration.locale !== "en-US") {
lang =
"https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" +
ctx.cfg.configuration.locale +