Merge pull request #461 from replicatedhq/deepsource-fix-97a5e72b

Fix check for empty string
This commit is contained in:
Marc Campbell
2021-10-26 12:58:17 -07:00
committed by GitHub

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())
}
}()