File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
6161
6262 // hide project id flag from help command because it could mislead users
6363 cmd .SetHelpFunc (func (command * cobra.Command , strings []string ) {
64- _ = command .Flags ().MarkHidden (globalflags .ProjectIdFlag ) // nolint:errcheck // there's no chance to handle the error here
64+ cobra . CheckErr ( command .Flags ().MarkHidden (globalflags .ProjectIdFlag ))
6565 command .Parent ().HelpFunc ()(command , strings )
6666 })
6767
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ func NewCmd(params *params.CmdParams) *cobra.Command {
7070
7171 // hide project id flag from help command because it could mislead users
7272 cmd .SetHelpFunc (func (command * cobra.Command , strings []string ) {
73- _ = command .Flags ().MarkHidden (globalflags .ProjectIdFlag ) // nolint:errcheck // there's no chance to handle the error here
73+ cobra . CheckErr ( command .Flags ().MarkHidden (globalflags .ProjectIdFlag ))
7474 command .Parent ().HelpFunc ()(command , strings )
7575 })
7676
You can’t perform that action at this time.
0 commit comments