From 67b658524670b3b54a35361983d746a80cbaa0dc Mon Sep 17 00:00:00 2001 From: Joseph Kato Date: Mon, 18 Nov 2024 19:33:18 -0800 Subject: [PATCH] refactor: fix golangci --- internal/check/filter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/check/filter.go b/internal/check/filter.go index 1993abad..1b813a9c 100644 --- a/internal/check/filter.go +++ b/internal/check/filter.go @@ -26,7 +26,7 @@ func filter(mgr *Manager) (map[string]Rule, error) { b, err := os.ReadFile(stringOrPath) if err != nil { - return nil, fmt.Errorf("failed to read filter '%s': %v", stringOrPath, err) + return nil, fmt.Errorf("failed to read filter '%s': %w", stringOrPath, err) } filter := string(b)