[#376] container: Remove pointers from slices
Signed-off-by: Evgenii Stratonikov <evgeniy@nspcc.ru>
This commit is contained in:
parent
aa1e092ca5
commit
30c530e83d
6 changed files with 39 additions and 57 deletions
|
@ -71,13 +71,13 @@ func GenerateContainerID(empty bool) *refs.ContainerID {
|
|||
return m
|
||||
}
|
||||
|
||||
func GenerateContainerIDs(empty bool) []*refs.ContainerID {
|
||||
var res []*refs.ContainerID
|
||||
func GenerateContainerIDs(empty bool) []refs.ContainerID {
|
||||
var res []refs.ContainerID
|
||||
|
||||
if !empty {
|
||||
res = append(res,
|
||||
GenerateContainerID(false),
|
||||
GenerateContainerID(false),
|
||||
*GenerateContainerID(false),
|
||||
*GenerateContainerID(false),
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue