Skip to content

Commit

Permalink
chore: use a blank identifier for MarkFlagRequired
Browse files Browse the repository at this point in the history
  • Loading branch information
bschaatsbergen committed Feb 27, 2024
1 parent fd919ba commit ba87752
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/install.go
Expand Up @@ -36,7 +36,7 @@ var (
Example: installExample,
PreRun: func(cmd *cobra.Command, args []string) {
if preRelease && !latest {
cmd.MarkFlagRequired("latest")
_ = cmd.MarkFlagRequired("latest")
}
},
Run: func(cmd *cobra.Command, args []string) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/use.go
Expand Up @@ -33,7 +33,7 @@ var (
Example: useExample,
PreRun: func(cmd *cobra.Command, args []string) {
if preRelease && !latest {
cmd.MarkFlagRequired("latest")
_ = cmd.MarkFlagRequired("latest")
}
},
Run: func(cmd *cobra.Command, args []string) {
Expand Down

0 comments on commit ba87752

Please sign in to comment.