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 @@ -71,7 +71,7 @@ func NewCmd(params *types.CmdParams) *cobra.Command {
7171
7272 // hide project id flag from help command because it could mislead users
7373 cmd .SetHelpFunc (func (command * cobra.Command , strings []string ) {
74- _ = command .Flags ().MarkHidden (globalflags .ProjectIdFlag ) // nolint:errcheck // there's no chance to handle the error here
74+ cobra . CheckErr ( command .Flags ().MarkHidden (globalflags .ProjectIdFlag ))
7575 command .Parent ().HelpFunc ()(command , strings )
7676 })
7777
You can’t perform that action at this time.
0 commit comments