Skip to content

Commit e62993a

Browse files
nicksndeloof
authored andcommitted
test: enable unused check, remove dead code (docker#4208)
1 parent 28251e8 commit e62993a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/watch/watcher_naive.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -302,14 +302,4 @@ func newWatcher(paths []string, ignore PathMatcher, l logger.Logger) (*naiveNoti
302302
return wmw, nil
303303
}
304304

305-
func isDir(pth string) (bool, error) {
306-
fi, err := os.Lstat(pth)
307-
if os.IsNotExist(err) {
308-
return false, nil
309-
} else if err != nil {
310-
return false, err
311-
}
312-
return fi.IsDir(), nil
313-
}
314-
315305
var _ Notify = &naiveNotify{}

0 commit comments

Comments
 (0)