test: enable unused check, remove dead code (#4208)

This commit is contained in:
Nick Santos 2021-02-16 16:13:46 -05:00 committed by Nicolas De loof
parent 28251e8be5
commit e62993a854
1 changed files with 0 additions and 10 deletions

View File

@ -302,14 +302,4 @@ func newWatcher(paths []string, ignore PathMatcher, l logger.Logger) (*naiveNoti
return wmw, nil
}
func isDir(pth string) (bool, error) {
fi, err := os.Lstat(pth)
if os.IsNotExist(err) {
return false, nil
} else if err != nil {
return false, err
}
return fi.IsDir(), nil
}
var _ Notify = &naiveNotify{}