[#376] reputation: Remove pointers from slices

Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
Evgenii Stratonikov 2022-03-02 11:40:47 +03:00 committed by Alex Vanin
parent 30c530e83d
commit 0cab407378
4 changed files with 13 additions and 19 deletions

View file

@ -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),
)
}