validation fixed

This commit is contained in:
asoseil 2017-12-16 17:34:48 +01:00
parent 4c8b8d9931
commit 142a561a93

View File

@ -355,7 +355,7 @@ func (p *Project) Validate(path string, fiche bool) bool {
if !array(e, p.Watcher.Exts) { if !array(e, p.Watcher.Exts) {
return false return false
} }
} else { }
separator := string(os.PathSeparator) separator := string(os.PathSeparator)
// supported paths // supported paths
for _, v := range p.Watcher.Ignore { for _, v := range p.Watcher.Ignore {
@ -365,7 +365,6 @@ func (p *Project) Validate(path string, fiche bool) bool {
return false return false
} }
} }
}
// file check // file check
if fiche { if fiche {
fi, err := os.Stat(path) fi, err := os.Stat(path)