[#170] object: Fix comments about checksums

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

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
remotes/fyrchik/split-info-format
Pavel Karpy 2022-04-13 12:21:01 +03:00 committed by LeL
parent 9b63c07c59
commit 2deaaeef05
1 changed files with 0 additions and 2 deletions

View File

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