removing else in parse funtion
package main
import (
+ "errors"
"strings"
"time"
- "errors"
kh "github.com/Comcast/kuberhealthy/v2/pkg/checks/external/checkclient"
log "github.com/sirupsen/logrus"
@@ -149,7 +149,7 @@ func parseInputValues() {
}
tolerations = append(tolerations, *tol)
}
- } else {
+ }
//parse single toleration and append to slice
tol, err := createToleration(tolerationsEnv)
if err != nil {
@@ -157,7 +157,6 @@ func parseInputValues() {
return
}
tolerations = append(tolerations, *tol)
- }
if len(tolerations) > 1 {
log.Infoln("Parsed TOLERATIONS:", tolerations)
}
