Selaa lähdekoodia

lib/model: Don't set watch error on folder creation (fixes 5005) (#5006)

Simon Frei 7 vuotta sitten
vanhempi
sitoutus
54e17c8bf4
1 muutettua tiedostoa jossa 0 lisäystä ja 1 poistoa
  1. 0 1
      lib/model/folder.go

+ 0 - 1
lib/model/folder.go

@@ -83,7 +83,6 @@ func newFolder(model *Model, cfg config.FolderConfiguration) folder {
 
 
 		watchCancel:      func() {},
 		watchCancel:      func() {},
 		restartWatchChan: make(chan struct{}, 1),
 		restartWatchChan: make(chan struct{}, 1),
-		watchErr:         errWatchNotStarted,
 		watchErrMut:      sync.NewMutex(),
 		watchErrMut:      sync.NewMutex(),
 	}
 	}
 }
 }