[#55] refs: Fix linter warnings

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-02-22 14:14:33 +03:00 committed by LeL
parent 1384523f62
commit 66e1fb8c53

View file

@ -1,79 +1,79 @@
package refs package refs
// SetValue sets container identifier in a binary format. // SetValue sets container identifier in a binary format.
func (m *ContainerID) SetValue(v []byte) { func (x *ContainerID) SetValue(v []byte) {
if m != nil { if x != nil {
m.Value = v x.Value = v
} }
} }
// SetValue sets object identifier in a binary format. // SetValue sets object identifier in a binary format.
func (m *ObjectID) SetValue(v []byte) { func (x *ObjectID) SetValue(v []byte) {
if m != nil { if x != nil {
m.Value = v x.Value = v
} }
} }
// SetValue sets owner identifier in a binary format. // SetValue sets owner identifier in a binary format.
func (m *OwnerID) SetValue(v []byte) { func (x *OwnerID) SetValue(v []byte) {
if m != nil { if x != nil {
m.Value = v x.Value = v
} }
} }
// SetContainerId sets container identifier of the address. // SetContainerId sets container identifier of the address.
func (m *Address) SetContainerId(v *ContainerID) { func (x *Address) SetContainerId(v *ContainerID) {
if m != nil { if x != nil {
m.ContainerId = v x.ContainerId = v
} }
} }
// SetObjectId sets object identifier of the address. // SetObjectId sets object identifier of the address.
func (m *Address) SetObjectId(v *ObjectID) { func (x *Address) SetObjectId(v *ObjectID) {
if m != nil { if x != nil {
m.ObjectId = v x.ObjectId = v
} }
} }
// SetChecksumType in generic checksum structure. // SetChecksumType in generic checksum structure.
func (m *Checksum) SetChecksumType(v ChecksumType) { func (x *Checksum) SetChecksumType(v ChecksumType) {
if m != nil { if x != nil {
m.Type = v x.Type = v
} }
} }
// SetChecksumSum in generic checksum structure. // SetSum in generic checksum structure.
func (m *Checksum) SetSum(v []byte) { func (x *Checksum) SetSum(v []byte) {
if m != nil { if x != nil {
m.Sum = v x.Sum = v
} }
} }
// SetMajor sets major version number. // SetMajor sets major version number.
func (m *Version) SetMajor(v uint32) { func (x *Version) SetMajor(v uint32) {
if m != nil { if x != nil {
m.Major = v x.Major = v
} }
} }
// SetMinor sets minor version number. // SetMinor sets minor version number.
func (m *Version) SetMinor(v uint32) { func (x *Version) SetMinor(v uint32) {
if m != nil { if x != nil {
m.Minor = v x.Minor = v
} }
} }
// SetKey sets public key in a binary format. // SetKey sets public key in a binary format.
func (m *Signature) SetKey(v []byte) { func (x *Signature) SetKey(v []byte) {
if m != nil { if x != nil {
m.Key = v x.Key = v
} }
} }
// SetSign sets signature. // SetSign sets signature.
func (m *Signature) SetSign(v []byte) { func (x *Signature) SetSign(v []byte) {
if m != nil { if x != nil {
m.Sign = v x.Sign = v
} }
} }