We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b52bbe8 commit 97640bbCopy full SHA for 97640bb
1 file changed
windows.go
@@ -100,7 +100,7 @@ func (w *Watcher) Remove(name string) error {
100
// WatchList returns the directories and files that are being monitered.
101
func (w *Watcher) WatchList() []string {
102
w.mu.Lock()
103
- w.mu.Unlock()
+ defer w.mu.Unlock()
104
105
entries := make([]string, 0, len(w.watches))
106
for _, entry := range w.watches {
0 commit comments