forked from TrueCloudLab/frostfs-api-go
[#376] status: Remove pointer from Detail
slice
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
0cab407378
commit
43fd3cfb4f
5 changed files with 14 additions and 20 deletions
|
@ -17,13 +17,13 @@ func Detail(empty bool) *status.Detail {
|
|||
}
|
||||
|
||||
// Details returns several status.Detail messages filled with static random values.
|
||||
func Details(empty bool) []*status.Detail {
|
||||
var res []*status.Detail
|
||||
func Details(empty bool) []status.Detail {
|
||||
var res []status.Detail
|
||||
|
||||
if !empty {
|
||||
res = append(res,
|
||||
Detail(false),
|
||||
Detail(false),
|
||||
*Detail(false),
|
||||
*Detail(false),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue