Skip to content

Commit

Permalink
response to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks committed Jan 19, 2022
1 parent 3686edf commit 31297bf
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 73 deletions.
3 changes: 1 addition & 2 deletions fen.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ package fsnotify

import (
"errors"
"fmt"
)

// Watcher watches a set of files, delivering events to a channel.
Expand All @@ -27,7 +26,7 @@ func NewWatcher() (*Watcher, error) {
// if this file system supports that.
// Must be called before Add/Remove.
func (w *Watcher) SetRecursive() error {
return fmt.Errorf("Not supported")
return errors.New("Not supported")
}

// Close removes all watches and closes the events channel.
Expand Down
2 changes: 1 addition & 1 deletion inotify.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (w *Watcher) isClosed() bool {
// if this file system supports that.
// Must be called before Add/Remove.
func (w *Watcher) SetRecursive() error {
return fmt.Errorf("Not supported")
return errors.New("Not supported")
}

// Close removes all watches and closes the events channel.
Expand Down

0 comments on commit 31297bf

Please sign in to comment.