forked from TrueCloudLab/frostfs-api-go
[#376] reputation: Remove pointers from slices
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
30c530e83d
commit
0cab407378
4 changed files with 13 additions and 19 deletions
|
@ -209,7 +209,7 @@ func (x *GlobalTrust) SetSignature(v *refs.Signature) {
|
|||
type AnnounceLocalTrustRequestBody struct {
|
||||
epoch uint64
|
||||
|
||||
trusts []*Trust
|
||||
trusts []Trust
|
||||
}
|
||||
|
||||
// GetEpoch returns epoch in which the trust was assessed.
|
||||
|
@ -229,7 +229,7 @@ func (x *AnnounceLocalTrustRequestBody) SetEpoch(v uint64) {
|
|||
}
|
||||
|
||||
// GetTrusts returns list of normalized trust values.
|
||||
func (x *AnnounceLocalTrustRequestBody) GetTrusts() []*Trust {
|
||||
func (x *AnnounceLocalTrustRequestBody) GetTrusts() []Trust {
|
||||
if x != nil {
|
||||
return x.trusts
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ func (x *AnnounceLocalTrustRequestBody) GetTrusts() []*Trust {
|
|||
}
|
||||
|
||||
// SetTrusts sets list of normalized trust values.
|
||||
func (x *AnnounceLocalTrustRequestBody) SetTrusts(v []*Trust) {
|
||||
func (x *AnnounceLocalTrustRequestBody) SetTrusts(v []Trust) {
|
||||
if x != nil {
|
||||
x.trusts = v
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue