mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 02:44:06 -06:00
Removing unnecessary null und undefined check.
This commit is contained in:
parent
d34d1ebf70
commit
5488f0e5ee
@ -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 +
|
||||
|
||||
Loading…
Reference in New Issue
Block a user