File tree 1 file changed +6
-6
lines changed
agent/agentcontainers/watcher
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -51,16 +51,16 @@ func NewFSNotify() (Watcher, error) {
51
51
}, nil
52
52
}
53
53
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 )
57
57
}
58
58
return nil
59
59
}
60
60
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 )
64
64
}
65
65
return nil
66
66
}
You can’t perform that action at this time.
0 commit comments