mirror of
https://github.com/replicatedhq/troubleshoot.git
synced 2026-02-14 18:29:53 +00:00
Fix check for empty string
This commit is contained in:
committed by
GitHub
parent
b32afc1d17
commit
3e60fcda8e
@@ -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