Skip to content

Commit

Permalink
chore: remove useless code
Browse files Browse the repository at this point in the history
Changed assignment of "this.$L" variable in Dayjs constructor.
  • Loading branch information
florianmarkusse authored and iamkun committed Oct 30, 2020
1 parent d11b5ee commit a3106a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit a3106a8

Please sign in to comment.