cli/command/container: Using a reference for the variable on range scope n
(scopelint)
``` cli/command/container/opts.go:700:37: Using a reference for the variable on range scope `n` (scopelint) if err := applyContainerOptions(&n, copts); err != nil { ^ ``` Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
648199b321
commit
54411e5a92
@ -686,6 +686,7 @@ func parseNetworkOpts(copts *containerOptions) (map[string]*networktypes.Endpoin
|
||||
)
|
||||
|
||||
for i, n := range copts.netMode.Value() {
|
||||
n := n
|
||||
if container.NetworkMode(n.Target).IsUserDefined() {
|
||||
hasUserDefined = true
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user