mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-19 19:04: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
|
// thus, we optimistically assume there is indeed an appropriate
|
||||||
// locale available and simply create the lang url-string
|
// locale available and simply create the lang url-string
|
||||||
let lang: string = "en-US"
|
let lang: string = "en-US"
|
||||||
if (
|
if (ctx.cfg.configuration.locale !== "en-US") {
|
||||||
ctx.cfg.configuration.locale !== null &&
|
|
||||||
ctx.cfg.configuration.locale !== undefined &&
|
|
||||||
ctx.cfg.configuration.locale !== "en-US"
|
|
||||||
) {
|
|
||||||
lang =
|
lang =
|
||||||
"https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" +
|
"https://raw.githubusercontent.com/citation-style-language/locales/refs/heads/master/locales-" +
|
||||||
ctx.cfg.configuration.locale +
|
ctx.cfg.configuration.locale +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user