Fix check for empty string

This commit is contained in:
deepsource-autofix[bot]
2021-10-26 19:24:08 +00:00
committed by GitHub
parent b32afc1d17
commit 3e60fcda8e

View File

@@ -35,9 +35,9 @@ func PortForward(config *restclient.Config, localPort int, remotePort int, names
go func() {
for range readyChan { // Kubernetes will close this channel when it has something to tell us.
}
if len(errOut.String()) != 0 {
if errOut.String() != "" {
panic(errOut.String())
} else if len(out.String()) != 0 {
} else if out.String() != "" {
// fmt.Println(out.String())
}
}()