From a0af50067845126773e2984d30c99946337585e0 Mon Sep 17 00:00:00 2001 From: dengsgo Date: Wed, 4 Dec 2019 11:02:22 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20includeDirs=E4=B8=8D?= =?UTF-8?q?=E5=8C=85=E5=90=AB=E9=A1=B9=E7=9B=AE=E7=9B=AE=E5=BD=95=E6=97=B6?= =?UTF-8?q?=E4=BB=8D=E4=BC=9A=E7=9B=91=E5=90=AC=E8=AF=A5=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fileboy.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/fileboy.go b/fileboy.go index df1f989..4866e17 100644 --- a/fileboy.go +++ b/fileboy.go @@ -87,9 +87,7 @@ func eventDispatcher(event fsnotify.Event) { func addWatcher() { log.Println("collecting directory information...") - dirsMap := map[string]bool{ - projectFolder: true, - } + dirsMap := map[string]bool{} for _, dir := range cfg.Monitor.IncludeDirs { darr := dirParse2Array(dir) if len(darr) < 1 || len(darr) > 2 {