Skip to content

Commit 21410ce

Browse files
Apply suggestion from @goller
Co-authored-by: Chris Goller <[email protected]>
1 parent d11253d commit 21410ce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pkg/fswatch/fswatch.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,6 @@ func (w *Watcher) runPolling() {
9595

9696
// scanDirectory scans the watch directory and detects changes
9797
func (w *Watcher) scanDirectory(initial bool) {
98-
w.wg.Add(1)
99-
defer w.wg.Done()
10098

10199
entries, err := fs.ReadDir(w.fileSystem, ".")
102100
if err != nil {

0 commit comments

Comments
 (0)