summaryrefslogtreecommitdiffstats
path: root/pkg/gui/file_watching.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-03-09 11:34:10 +1100
committerJesse Duffield <jessedduffield@gmail.com>2020-03-09 12:23:13 +1100
commite47ad846c4b6100aaff7013a3516d329bde19194 (patch)
treeead7f3f0a911d7ee4f4f46640c2bf449a74e8e05 /pkg/gui/file_watching.go
parent8f68ac21293f1a0476802974817d9f87875f8743 (diff)
big golangci-lint cleanup
Diffstat (limited to 'pkg/gui/file_watching.go')
-rw-r--r--pkg/gui/file_watching.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/file_watching.go b/pkg/gui/file_watching.go
index 3a9532116..47d426c87 100644
--- a/pkg/gui/file_watching.go
+++ b/pkg/gui/file_watching.go
@@ -23,11 +23,13 @@ type fileWatcher struct {
}
func NewFileWatcher(log *logrus.Entry) *fileWatcher {
- watcher, err := fsnotify.NewWatcher()
- log.Error(err)
+ // TODO: get this going again, and ensure we don't see any crashes from it
return &fileWatcher{
Disabled: true,
}
+
+ watcher, err := fsnotify.NewWatcher()
+
if err != nil {
log.Error(err)
return &fileWatcher{