Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Feb 21, 2025
1 parent 0f8f763 commit 391070f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/drivers/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default defineDriver((opts: FSStorageOptions = {}) => {
watchOptions.ignored = [watchOptions.ignored];
}
// Glob support for chokidar v4 (TODO: remove for unstorage v2)
if (watchOptions.ignored.length > 0) {
if (opts.ignore?.length) {
watchOptions.ignored.push((path) => matchesGlob(path, opts.ignore!));
} else {
watchOptions.ignored.push((path) =>
Expand Down

0 comments on commit 391070f

Please sign in to comment.