Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Johnson <jonjohnsonjr@gmail.com>
  • Loading branch information
jonjohnsonjr committed Mar 28, 2023
1 parent 13977d5 commit cf4cd2a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/kpromo/cmd/cip/cip.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package cip
import (
"fmt"

"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"sigs.k8s.io/promo-tools/v3/internal/legacy/cli"
Expand Down Expand Up @@ -200,7 +201,9 @@ network from a registry, it reads from the local manifests only`,
0,
"the maximum image size (in MiB) allowed for promotion",
)
CipCmd.PersistentFlags().MarkHidden("max-image-size")
if err := CipCmd.PersistentFlags().MarkHidden("max-image-size"); err != nil {
logrus.Infof("Failed to mark max-image-size flag as hidden: %v", err)
}

CipCmd.PersistentFlags().StringVar(
&runOpts.SignerAccount,
Expand Down

0 comments on commit cf4cd2a

Please sign in to comment.