Skip to content

Commit

Permalink
do not remove-and-add file from watcher when event happens
Browse files Browse the repository at this point in the history
  • Loading branch information
sio4 committed Oct 15, 2022
1 parent a8045be commit a1e9e9c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions refresh/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@ func (r *Manager) Start() error {
if event.Op != fsnotify.Chmod {
go r.build(event)
}
w.Remove(event.Name)
w.Add(event.Name)
case <-r.context.Done():
break LoopRebuilder
}
Expand Down

0 comments on commit a1e9e9c

Please sign in to comment.