Skip to content

Commit

Permalink
removed a func that is not used
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamRussak committed Jun 6, 2024
1 parent abcc287 commit 5d3a0ae
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -408,13 +408,6 @@ func printWarning(out io.Writer, name string) {
ct.ResetColor()
}

func FailOnError(err error, message string) {
if err != nil {
printWarning(os.Stdout, fmt.Sprintf("%s: %s\n", message, err.Error()))
os.Exit(1)
}
}

func appendConfig(c1, c2 *clientcmdapi.Config) *clientcmdapi.Config {
config := clientcmdapi.NewConfig()
_ = mergo.Merge(config, c1)
Expand Down

0 comments on commit 5d3a0ae

Please sign in to comment.