mirror of
https://github.com/containers/podman.git
synced 2025-11-30 10:07:33 +08:00
Fix QF1003: could use tagged switch" staticcheck warning
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -704,11 +704,12 @@ var _ = Describe("Podman kube generate", func() {
|
||||
// have anything for protocol under the ports as tcp is the default
|
||||
// for k8s
|
||||
Expect(port.Protocol).To(BeEmpty())
|
||||
if port.HostPort == 4008 {
|
||||
switch port.HostPort {
|
||||
case 4008:
|
||||
foundPort400x++
|
||||
} else if port.HostPort == 5008 {
|
||||
case 5008:
|
||||
foundPort500x++
|
||||
} else {
|
||||
default:
|
||||
foundOtherPort++
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user