mirror of https://github.com/docker/compose.git
test: enable unused check, remove dead code (#4208)
This commit is contained in:
parent
28251e8be5
commit
e62993a854
|
@ -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{}
|
||||
|
|
Loading…
Reference in New Issue