From ad39a84a9d0d6f3a56ca609752f1cc323c2a5a70 Mon Sep 17 00:00:00 2001 From: Mike Petersen Date: Fri, 21 Aug 2020 11:36:56 -0700 Subject: [PATCH] Removed error checking - will add back after more updates --- .../commands/service/configuration_edit_flags.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/pkg/kn/commands/service/configuration_edit_flags.go b/pkg/kn/commands/service/configuration_edit_flags.go index e99e809118..589e5e406e 100644 --- a/pkg/kn/commands/service/configuration_edit_flags.go +++ b/pkg/kn/commands/service/configuration_edit_flags.go @@ -335,10 +335,7 @@ func (p *ConfigurationEditFlags) Apply( return fmt.Errorf("only --scale or --scale-min can be specified") } else { if !strings.Contains(p.Scale, "..") { - scaleMin, err := strconv.Atoi(p.Scale) - if err != nil { - return err - } + scaleMin, _ := strconv.Atoi(p.Scale) scaleMax := scaleMin err = servinglib.UpdateMaxScale(template, scaleMax) if err != nil { @@ -350,14 +347,8 @@ func (p *ConfigurationEditFlags) Apply( } } else { scaleParts := strings.Split(p.Scale, "..") - scaleMin, err := strconv.Atoi(scaleParts[0]) - if err != nil { - return err - } - scaleMax, err := strconv.Atoi(scaleParts[1]) - if err != nil { - return err - } + scaleMin, _ := strconv.Atoi(scaleParts[0]) + scaleMax, _ := strconv.Atoi(scaleParts[1]) if scaleMax > 0 { err = servinglib.UpdateMaxScale(template, scaleMax) if err != nil {