From 5488f0e5ee9c110e4e38451b7a18673e196d62fe Mon Sep 17 00:00:00 2001 From: Kristoffer Schneider Date: Wed, 6 Aug 2025 11:47:51 +0200 Subject: [PATCH] Removing unnecessary `null` und `undefined` check. --- quartz/plugins/transformers/citations.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/quartz/plugins/transformers/citations.ts b/quartz/plugins/transformers/citations.ts index 5bbc736d6..60f01f39d 100644 --- a/quartz/plugins/transformers/citations.ts +++ b/quartz/plugins/transformers/citations.ts @@ -30,11 +30,7 @@ export const Citations: QuartzTransformerPlugin> = (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 +