File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
agent/agentcontainers/watcher Expand file tree Collapse file tree 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) {
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}
You can’t perform that action at this time.
0 commit comments