mirror of
https://github.com/containers/podman.git
synced 2025-10-16 10:43:52 +08:00
Fix QF1003: could use tagged switch" staticcheck warning
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@ -238,8 +238,8 @@ func setContainerNameForTemplate(startCommand []string, info *containerInfo) ([]
|
||||
break
|
||||
}
|
||||
}
|
||||
switch {
|
||||
case nameIx == -1:
|
||||
switch nameIx {
|
||||
case -1:
|
||||
// if not found, add --name argument in the command slice before the "run" argument.
|
||||
// it's assumed that the command slice contains this argument.
|
||||
runIx := -1
|
||||
|
Reference in New Issue
Block a user