mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-04-15 07:16:34 +00:00
Merge pull request #461 from replicatedhq/deepsource-fix-97a5e72b
Fix check for empty string
This commit is contained in:
@@ -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())
|
||||
}
|
||||
}()
|
||||
|
||||
Reference in New Issue
Block a user