Skip to content

Commit

Permalink
chore: remove leftover console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
43081j committed Jul 30, 2024
1 parent 064e47d commit a728695
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/nodefs-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,12 +372,10 @@ export default class NodeFsHandler {
if (parent.has(basename)) return;

const listener = async (path, newStats) => {
console.log({path, newStats});
if (!this.fsw._throttle(THROTTLE_MODE_WATCH, file, 5)) return;
if (!newStats || newStats.mtimeMs === 0) {
try {
const newStats = await stat(file);
console.log({newStats, prevStats});
if (this.fsw.closed) return;
// Check that change event was not fired because of changed only accessTime.
const at = newStats.atimeMs;
Expand All @@ -393,7 +391,6 @@ export default class NodeFsHandler {
prevStats = newStats;
}
} catch (error) {
console.log({error});
// Fix issues where mtime is null but file is still present
this.fsw._remove(dirname, basename);
}
Expand Down

0 comments on commit a728695

Please sign in to comment.