Skip to content

Commit fcf2586

Browse files
committed
ignore MarkHidden errors
1 parent 6e55e89 commit fcf2586

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

command/config.go

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,9 @@ func init() {
1414
configSetCmd.Flags().StringP("host", "h", "", "Set per-host setting")
1515

1616
// TODO reveal and add usage once we properly support multiple hosts
17-
err := configGetCmd.Flags().MarkHidden("host")
18-
19-
if err != nil {
20-
panic("this should not happen")
21-
}
22-
17+
_ = configGetCmd.Flags().MarkHidden("host")
2318
// TODO reveal and add usage once we properly support multiple hosts
24-
err = configSetCmd.Flags().MarkHidden("host")
25-
if err != nil {
26-
panic("this should not happen")
27-
}
19+
_ = configSetCmd.Flags().MarkHidden("host")
2820
}
2921

3022
var configCmd = &cobra.Command{

0 commit comments

Comments
 (0)