Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 22f58b6

Browse files
authoredFeb 16, 2021
test: enable unused check, remove dead code (docker#4208)
1 parent 3c6220c commit 22f58b6

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎pkg/watch/watcher_naive.go

-10
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)
Please sign in to comment.