From b4c1c1eaa5d71dbf0a62686e3badac1962f0e1c4 Mon Sep 17 00:00:00 2001 From: Casual Date: Mon, 1 Jul 2024 14:08:01 +0300 Subject: [PATCH] small fmt --- watchFilesystem.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchFilesystem.go b/watchFilesystem.go index bdbb299..58db86b 100644 --- a/watchFilesystem.go +++ b/watchFilesystem.go @@ -62,6 +62,7 @@ func watchFilesystem() { //TODO watch subfolders }() //get subdirectories + // err = watcher.Add("...") //TODO waiting for official recursive add https://github.com/fsnotify/fsnotify/issues/18 var subdirs []string filepath.WalkDir(".", func(path string, file fs.DirEntry, err error) error { if err != nil { @@ -81,7 +82,6 @@ func watchFilesystem() { //TODO watch subfolders } } // Add a current path. - // err = watcher.Add("...") //TODO waiting for official recursive add https://github.com/fsnotify/fsnotify/issues/18 err = watcher.Add(".") if err != nil { errHandler(err, "Filesystem Watcher - Can't add current dir:") @@ -92,7 +92,7 @@ func watchFilesystem() { //TODO watch subfolders } func watchRun() string { - //TODO if edited .go file + //TODO if edited .go file or go.mod/go.sum return GoVet() }