From 54411e5a92b17577bbfe204afcb0a88b7ee685b1 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 29 Oct 2019 14:15:29 +0100 Subject: [PATCH] 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 --- cli/command/container/opts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/command/container/opts.go b/cli/command/container/opts.go index 19a2d158cc..0615e1b556 100644 --- a/cli/command/container/opts.go +++ b/cli/command/container/opts.go @@ -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 {