]> go.fuhry.dev Git - fsnotify.git/commit
Return ErrClosed on Add() when the watcher is closed (#516)
authorMartin Tournoij <martin@arp242.net>
Thu, 13 Oct 2022 18:17:08 +0000 (20:17 +0200)
committerGitHub <noreply@github.com>
Thu, 13 Oct 2022 18:17:08 +0000 (20:17 +0200)
commitac3d3a5e20f55f402e584253f6a355d953f37660
tree8a88524253ca683c73e19b92aca503710a32efa1
parent9930e10ea84c10f74dcee8eb7b8ef75164919e0c
Return ErrClosed on Add() when the watcher is closed (#516)

Also consistently return nil for Remove() and WatchList(). For Remove()
we could return an error, but I don't really see the point: if the
watcher is closed it's basically a no-op so returning nil is fine.

For WatchList() I'd like to return an error, but there is no error
return, so explicitly returning nil is the best we can do.

Fixes #511
CHANGELOG.md
backend_fen.go
backend_inotify.go
backend_kqueue.go
backend_other.go
backend_windows.go
fsnotify.go
fsnotify_test.go
mkdoc.zsh