From d1e2450c7b1c887a54b3592e402af0861f1af121 Mon Sep 17 00:00:00 2001 From: nikpivkin Date: Sat, 21 Dec 2024 15:17:27 +0600 Subject: [PATCH] refactor: use xerrors instead of fmt Signed-off-by: nikpivkin --- pkg/dependency/parser/python/pyproject/pyproject.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/dependency/parser/python/pyproject/pyproject.go b/pkg/dependency/parser/python/pyproject/pyproject.go index 1da0c164f625..9a0664adab57 100644 --- a/pkg/dependency/parser/python/pyproject/pyproject.go +++ b/pkg/dependency/parser/python/pyproject/pyproject.go @@ -1,7 +1,6 @@ package pyproject import ( - "fmt" "io" "github.com/BurntSushi/toml" @@ -33,7 +32,7 @@ type dependencies map[string]struct{} func (d *dependencies) UnmarshalTOML(data any) error { m, ok := data.(map[string]any) if !ok { - return fmt.Errorf("dependencies must be map, but got: %T", data) + return xerrors.Errorf("dependencies must be map, but got: %T", data) } *d = lo.MapEntries(m, func(pkgName string, _ any) (string, struct{}) {