From 4b9813c11cbbd4a48ac6845035489f8cd49b8b36 Mon Sep 17 00:00:00 2001 From: AshwiniK-protean Date: Thu, 13 Mar 2025 18:37:58 +0530 Subject: [PATCH] update test cases for plugin file --- shared/plugin/implementations/validator/cmd/plugin.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/shared/plugin/implementations/validator/cmd/plugin.go b/shared/plugin/implementations/validator/cmd/plugin.go index b02f214..13dab92 100644 --- a/shared/plugin/implementations/validator/cmd/plugin.go +++ b/shared/plugin/implementations/validator/cmd/plugin.go @@ -18,13 +18,7 @@ func (vp ValidatorProvider) New(ctx context.Context, config map[string]string) ( return nil, definition.Error{Path: "", Message: err.Message} } - // Convert the map to the expected type - result := make(map[string]definition.Validator) - for key, val := range validators { - result[key] = val - } - - return result, definition.Error{} + return validators, definition.Error{} } // Provider is the exported symbol that the plugin manager will look for.