Skip to content

Commit 3dfdaa6

Browse files
committed
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 <[email protected]>
1 parent 9865420 commit 3dfdaa6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

cli/command/container/opts.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,8 +925,7 @@ func parseDevice(device, serverOS string) (container.DeviceMapping, error) {
925925
// parseLinuxDevice parses a device mapping string to a container.DeviceMapping struct
926926
// knowing that the target is a Linux daemon
927927
func parseLinuxDevice(device string) (container.DeviceMapping, error) {
928-
src := ""
929-
dst := ""
928+
var src, dst string
930929
permissions := "rwm"
931930
arr := strings.Split(device, ":")
932931
switch len(arr) {

0 commit comments

Comments
 (0)