[#199] sdk/container: Correct linter's remarks

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-11-16 17:39:06 +03:00 committed by Alex Vanin
parent 7611c218e3
commit 459d295788
2 changed files with 2 additions and 6 deletions

View file

@ -15,6 +15,7 @@ type Container struct {
func New(opts ...NewOption) *Container { func New(opts ...NewOption) *Container {
cnrOptions := defaultContainerOptions() cnrOptions := defaultContainerOptions()
for i := range opts { for i := range opts {
opts[i].apply(&cnrOptions) opts[i].apply(&cnrOptions)
} }
@ -36,7 +37,7 @@ func New(opts ...NewOption) *Container {
return cnr return cnr
} }
func (c Container) ToV2() *container.Container { func (c *Container) ToV2() *container.Container {
return &c.v2 return &c.v2
} }

View file

@ -12,11 +12,6 @@ type (
apply(*containerOptions) apply(*containerOptions)
} }
attribute struct {
key string
value string
}
containerOptions struct { containerOptions struct {
acl uint32 acl uint32
policy *netmap.PlacementPolicy policy *netmap.PlacementPolicy