Skip to content

Commit

Permalink
Windows: add missing defer to Watcher.WatchList (#447)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sojamann committed Apr 24, 2022
1 parent b52bbe8 commit 97640bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows.go
Expand Up @@ -100,7 +100,7 @@ func (w *Watcher) Remove(name string) error {
// WatchList returns the directories and files that are being monitered.
func (w *Watcher) WatchList() []string {
w.mu.Lock()
w.mu.Unlock()
defer w.mu.Unlock()

entries := make([]string, 0, len(w.watches))
for _, entry := range w.watches {
Expand Down

0 comments on commit 97640bb

Please sign in to comment.