linting: assigned to src, but reassigned without using the value (wastedassign)

cli/command/container/opts.go:928:2: assigned to src, but reassigned without using the value (wastedassign)
        src := ""
        ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 3dfdaa6458)
Signed-off-by: Cory Snider <csnider@mirantis.com>
This commit is contained in:
Sebastiaan van Stijn 2022-09-03 18:50:45 +02:00 committed by Cory Snider
parent b8dd4ca57b
commit 2d955cbeed
1 changed files with 1 additions and 2 deletions

View File

@ -911,8 +911,7 @@ func parseDevice(device, serverOS string) (container.DeviceMapping, error) {
// parseLinuxDevice parses a device mapping string to a container.DeviceMapping struct // parseLinuxDevice parses a device mapping string to a container.DeviceMapping struct
// knowing that the target is a Linux daemon // knowing that the target is a Linux daemon
func parseLinuxDevice(device string) (container.DeviceMapping, error) { func parseLinuxDevice(device string) (container.DeviceMapping, error) {
src := "" var src, dst string
dst := ""
permissions := "rwm" permissions := "rwm"
arr := strings.Split(device, ":") arr := strings.Split(device, ":")
switch len(arr) { switch len(arr) {