Fix QF1003: could use tagged switch" staticcheck warning

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2025-03-27 15:14:48 -07:00
parent 0dddc5e3c0
commit 0105131b5c
8 changed files with 40 additions and 34 deletions

View File

@@ -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++
}
}