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.
This commit is contained in:
dashaus 2016-08-22 19:57:28 +01:00 committed by GitHub
parent 209cbc8974
commit dc8a40f1fb
1 changed files with 0 additions and 1 deletions

View File

@ -205,7 +205,6 @@ func (p *Project) fmt() error {
// Ignore validates a path // Ignore validates a path
func (p *Project) ignore(str string) bool { func (p *Project) ignore(str string) bool {
for _, v := range p.Watcher.Ignore { for _, v := range p.Watcher.Ignore {
v = slash(v)
if strings.Contains(str, p.base+v) { if strings.Contains(str, p.base+v) {
return true return true
} }