From fcf258620ca5085ada8f689e75e6e0d4513fcfbf Mon Sep 17 00:00:00 2001 From: vilmibm Date: Tue, 21 Apr 2020 11:23:38 -0500 Subject: [PATCH] ignore MarkHidden errors --- command/config.go | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/command/config.go b/command/config.go index ff866109d..0350e528b 100644 --- a/command/config.go +++ b/command/config.go @@ -14,17 +14,9 @@ func init() { configSetCmd.Flags().StringP("host", "h", "", "Set per-host setting") // TODO reveal and add usage once we properly support multiple hosts - err := configGetCmd.Flags().MarkHidden("host") - - if err != nil { - panic("this should not happen") - } - + _ = configGetCmd.Flags().MarkHidden("host") // TODO reveal and add usage once we properly support multiple hosts - err = configSetCmd.Flags().MarkHidden("host") - if err != nil { - panic("this should not happen") - } + _ = configSetCmd.Flags().MarkHidden("host") } var configCmd = &cobra.Command{