From dc8a40f1fb7a7d0c9e4a47a1fbfb687fe1790a24 Mon Sep 17 00:00:00 2001 From: dashaus Date: Mon, 22 Aug 2016 19:57:28 +0100 Subject: [PATCH] Remove slash to ignore paths It is not necessary add a slash for ignore paths because the p.base already has an slash to the end. --- realize/watcher.go | 1 - 1 file changed, 1 deletion(-) diff --git a/realize/watcher.go b/realize/watcher.go index c7370fa..f10a322 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -205,7 +205,6 @@ func (p *Project) fmt() error { // Ignore validates a path func (p *Project) ignore(str string) bool { for _, v := range p.Watcher.Ignore { - v = slash(v) if strings.Contains(str, p.base+v) { return true }