Skip to content

Commit

Permalink
chore: define KEY_IGNORE first
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelzhang committed Nov 3, 2021
1 parent f19a790 commit 1ba7096
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,10 @@ class Ignore {
constructor ({
ignorecase = true
} = {}) {
define(this, KEY_IGNORE, true)

this._rules = []
this._ignorecase = ignorecase
define(this, KEY_IGNORE, true)
this._initCache()
}

Expand Down

0 comments on commit 1ba7096

Please sign in to comment.