From a3106a8b952fa945a4e440b6433354b11dda5ec4 Mon Sep 17 00:00:00 2001 From: Florian Markusse Date: Fri, 23 Oct 2020 18:22:16 +0200 Subject: [PATCH] chore: remove useless code Changed assignment of "this.$L" variable in Dayjs constructor. --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 799bb3a3f..439a392f9 100644 --- a/src/index.js +++ b/src/index.js @@ -76,7 +76,7 @@ const parseDate = (cfg) => { class Dayjs { constructor(cfg) { - this.$L = this.$L || parseLocale(cfg.locale, null, true) + this.$L = parseLocale(cfg.locale, null, true) this.parse(cfg) // for plugin }