We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent39526e6 commit7edee90Copy full SHA for 7edee90
agent/agentcontainers/watcher/watcher.go
@@ -51,16 +51,16 @@ func NewFSNotify() (Watcher, error) {
51
},nil
52
}
53
54
-func (f*fsnotifyWatcher)Add(filestring)error {
55
-iferr:=f.Watcher.Add(file);err!=nil {
56
-returnxerrors.Errorf("addfile to watcher: %w",err)
+func (f*fsnotifyWatcher)Add(pathstring)error {
+iferr:=f.Watcher.Add(path);err!=nil {
+returnxerrors.Errorf("addpath to watcher: %w",err)
57
58
returnnil
59
60
61
-func (f*fsnotifyWatcher)Remove(filestring)error {
62
-iferr:=f.Watcher.Remove(file);err!=nil {
63
-returnxerrors.Errorf("removefile from watcher: %w",err)
+func (f*fsnotifyWatcher)Remove(pathstring)error {
+iferr:=f.Watcher.Remove(path);err!=nil {
+returnxerrors.Errorf("removepath from watcher: %w",err)
64
65
66