From 949a8d47c3d1d5454199a51927bc7621f9953f17 Mon Sep 17 00:00:00 2001 From: "mayur.popli" Date: Fri, 11 Apr 2025 11:35:48 +0530 Subject: [PATCH] fix: linting errors --- pkg/plugin/implementation/schemavalidator/schemavalidator.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/plugin/implementation/schemavalidator/schemavalidator.go b/pkg/plugin/implementation/schemavalidator/schemavalidator.go index f7e28c5..5a04a4c 100644 --- a/pkg/plugin/implementation/schemavalidator/schemavalidator.go +++ b/pkg/plugin/implementation/schemavalidator/schemavalidator.go @@ -3,7 +3,6 @@ package schemavalidator import ( "context" "encoding/json" - "errors" "fmt" "net/url" "os" @@ -78,7 +77,7 @@ func (v *schemaValidator) Validate(ctx context.Context, url *url.URL, data []byt // Retrieve the schema from the cache. schema, exists := v.schemaCache[schemaFileName] if !exists { - return model.NewBadReqErr(errors.New(fmt.Sprintf("schema not found for domain: %s", domain))) + return model.NewBadReqErr(fmt.Errorf("schema not found for domain: %s", domain)) } var jsonData any