Browse Source

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

Nick Santos 4 năm trước cách đây
mục cha
commit
e62993a854
1 tập tin đã thay đổi với 0 bổ sung10 xóa
  1. 0 10
      pkg/watch/watcher_naive.go

+ 0 - 10
pkg/watch/watcher_naive.go

@@ -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{}