fix: remove redundant code
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user