From 6f65c08253000fb80d44a290cf51fe170d5a0477 Mon Sep 17 00:00:00 2001 From: "R.I.Pienaar" Date: Mon, 30 Sep 2024 10:51:41 +0200 Subject: [PATCH] new linting update Signed-off-by: R.I.Pienaar --- surveyor/jetstream_advisories.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/surveyor/jetstream_advisories.go b/surveyor/jetstream_advisories.go index a836292..05fa895 100644 --- a/surveyor/jetstream_advisories.go +++ b/surveyor/jetstream_advisories.go @@ -15,6 +15,7 @@ package surveyor import ( "encoding/json" + "errors" "fmt" "io/fs" "os" @@ -322,7 +323,7 @@ func (o *JSAdvisoryConfig) Validate() error { return nil } - return fmt.Errorf(strings.Join(errs, ", ")) + return errors.New(strings.Join(errs, ", ")) } func (o *JSAdvisoryConfig) copy() *JSAdvisoryConfig {