fix: remove redundant code

This commit is contained in:
ameersohel45
2025-12-12 17:14:49 +05:30
parent f6b32ef2f2
commit f0ccef9e59

View File

@@ -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.