Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7edee90

Browse files
committed
s/file/path
1 parent 39526e6 commit 7edee90

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

agent/agentcontainers/watcher/watcher.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -51,16 +51,16 @@ func NewFSNotify() (Watcher, error) {
5151
}, nil
5252
}
5353

54-
func (f *fsnotifyWatcher) Add(file string) error {
55-
if err := f.Watcher.Add(file); err != nil {
56-
return xerrors.Errorf("add file to watcher: %w", err)
54+
func (f *fsnotifyWatcher) Add(path string) error {
55+
if err := f.Watcher.Add(path); err != nil {
56+
return xerrors.Errorf("add path to watcher: %w", err)
5757
}
5858
return nil
5959
}
6060

61-
func (f *fsnotifyWatcher) Remove(file string) error {
62-
if err := f.Watcher.Remove(file); err != nil {
63-
return xerrors.Errorf("remove file from watcher: %w", err)
61+
func (f *fsnotifyWatcher) Remove(path string) error {
62+
if err := f.Watcher.Remove(path); err != nil {
63+
return xerrors.Errorf("remove path from watcher: %w", err)
6464
}
6565
return nil
6666
}

0 commit comments

Comments
 (0)