From 536dae63508b44886e4004a1837fbdf06ce95659 Mon Sep 17 00:00:00 2001 From: Boming Zhang Date: Thu, 5 Dec 2024 16:40:48 -0500 Subject: [PATCH] chore(healthcheck): remove gitignore log --- pkg/healthcheck/forbidden.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/healthcheck/forbidden.go b/pkg/healthcheck/forbidden.go index 6118c03..0ccfc9c 100644 --- a/pkg/healthcheck/forbidden.go +++ b/pkg/healthcheck/forbidden.go @@ -17,11 +17,7 @@ func getForbiddens(root string) ([]string, error) { // Create a gitignore instance from the .gitignore file ignore := gitignore.NewRepositoryWithCache( - root, ".gitignore", gitignore.NewCache(), - func(e gitignore.Error) bool { - slog.Error("gitignore error", "error", e) - return true - }, + root, ".gitignore", gitignore.NewCache(), nil, ) err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {