Skip to content

Commit

Permalink
linting: assigned to src, but reassigned without using the value (was…
Browse files Browse the repository at this point in the history
…tedassign)

    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 3dfdaa6)
Signed-off-by: Cory Snider <csnider@mirantis.com>
  • Loading branch information
thaJeztah authored and corhere committed Mar 1, 2023
1 parent b8dd4ca commit 2d955cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/command/container/opts.go
Original file line number Diff line number Diff line change
Expand Up @@ -911,8 +911,7 @@ func parseDevice(device, serverOS string) (container.DeviceMapping, error) {
// parseLinuxDevice parses a device mapping string to a container.DeviceMapping struct
// knowing that the target is a Linux daemon
func parseLinuxDevice(device string) (container.DeviceMapping, error) {
src := ""
dst := ""
var src, dst string
permissions := "rwm"
arr := strings.Split(device, ":")
switch len(arr) {
Expand Down

0 comments on commit 2d955cb

Please sign in to comment.