[#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
|
@ -61,13 +61,13 @@ func GenerateGlobalTrust(empty bool) *reputation.GlobalTrust {
|
|||
return m
|
||||
}
|
||||
|
||||
func GenerateTrusts(empty bool) []*reputation.Trust {
|
||||
var res []*reputation.Trust
|
||||
func GenerateTrusts(empty bool) []reputation.Trust {
|
||||
var res []reputation.Trust
|
||||
|
||||
if !empty {
|
||||
res = append(res,
|
||||
GenerateTrust(false),
|
||||
GenerateTrust(false),
|
||||
*GenerateTrust(false),
|
||||
*GenerateTrust(false),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue