From f0ccef9e597ec0cb5b1601101e8838cf1b0972ed Mon Sep 17 00:00:00 2001 From: ameersohel45 Date: Fri, 12 Dec 2025 17:14:49 +0530 Subject: [PATCH] fix: remove redundant code --- .../implementation/schemav2validator/extended_schema.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/plugin/implementation/schemav2validator/extended_schema.go b/pkg/plugin/implementation/schemav2validator/extended_schema.go index 12c38da..104cfaf 100644 --- a/pkg/plugin/implementation/schemav2validator/extended_schema.go +++ b/pkg/plugin/implementation/schemav2validator/extended_schema.go @@ -48,7 +48,7 @@ type cachedDomainSchema struct { // validateExtendedSchemas validates all objects with @context against their schemas. func (v *schemav2Validator) validateExtendedSchemas(ctx context.Context, body interface{}) error { - // Extract "message" object - only scan inside message + // Extract "message" object - scan inside message bodyMap, ok := body.(map[string]interface{}) if !ok { return fmt.Errorf("body is not a valid JSON object") @@ -97,8 +97,6 @@ func (v *schemav2Validator) validateExtendedSchemas(ctx context.Context, body in } return nil - - return nil } // newSchemaCache creates a new schema cache.