[#170] object: Fix comments about checksums

Delete "must not be nil" where there are no pointers.

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-04-13 12:21:01 +03:00 committed by LeL
parent 9b63c07c59
commit 2deaaeef05

View file

@ -234,7 +234,6 @@ func (o *Object) PayloadChecksum() (checksum.Checksum, bool) {
}
// SetPayloadChecksum sets checksum of the object payload.
// Checksum must not be nil.
//
// See also PayloadChecksum.
func (o *Object) SetPayloadChecksum(v checksum.Checksum) {
@ -265,7 +264,6 @@ func (o *Object) PayloadHomomorphicHash() (checksum.Checksum, bool) {
}
// SetPayloadHomomorphicHash sets homomorphic hash of the object payload.
// Checksum must not be nil.
//
// See also PayloadHomomorphicHash.
func (o *Object) SetPayloadHomomorphicHash(v checksum.Checksum) {