[#319] Do not return payload formatting error on regular objects

Regular objects by definition have valid payload, so there should
be no errors.

Related to #302

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/KirillovDenis/release/v0.21.1
Alex Vanin 2021-01-15 15:45:42 +03:00 committed by Alex Vanin
parent f311be3ab6
commit 62de9f327e
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ func (v *FormatValidator) ValidateContent(o *Object) error {
}
}
default:
return errors.Errorf("(%T) unsupported object type %s", v, o.Type())
// ignore all other object types, they do not need payload formatting
}
return nil