Skip to content

Commit

Permalink
Merge pull request #1046 from valera-rozuvan/patch-1
Browse files Browse the repository at this point in the history
Simplify conditional check
  • Loading branch information
paulmillr committed Nov 8, 2020
2 parents 2ba408b + 2217b50 commit e1753dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/fsevents-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,8 +299,7 @@ handleEvent(event, path, fullPath, realPath, parent, watchedDir, item, info, opt
* @returns {Function} closer for the watcher instance
*/
_watchWithFsEvents(watchPath, realPath, transform, globFilter) {
if (this.fsw.closed) return;
if (this.fsw._isIgnored(watchPath)) return;
if (this.fsw.closed || this.fsw._isIgnored(watchPath)) return;
const opts = this.fsw.options;
const watchCallback = async (fullPath, flags, info) => {
if (this.fsw.closed) return;
Expand Down

0 comments on commit e1753dd

Please sign in to comment.