Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
Signed-off-by: cpanato <ctadeu@gmail.com>
  • Loading branch information
cpanato committed Mar 4, 2024
1 parent 3aa7566 commit 1fcaab3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/commands/attest/attest.go
Expand Up @@ -103,7 +103,7 @@ func New(cfg *config.Config) *cobra.Command {
Use: "attest",
Short: "add attestations to Git objects",
Args: cobra.ArbitraryArgs,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
ctx := context.Background()
return o.Run(ctx)
},
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/initialize/initialize.go
Expand Up @@ -67,7 +67,7 @@ gitsign initialize -root <url>
# initialize with an out-of-band root key file and custom repository mirror.
gitsign initialize -mirror <url> -root <url>`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(cmd *cobra.Command, _ []string) error {
return initialize.DoInitialize(cmd.Context(), o.Root, o.Mirror)
},
}
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/show/show.go
Expand Up @@ -200,7 +200,7 @@ Prints an in-toto style predicate for the specified revision.
If no revision is specified, HEAD is used.
This command is experimental, and its CLI surface may change.`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
return o.Run(os.Stdout, args)
},
}
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/verify/verify.go
Expand Up @@ -128,7 +128,7 @@ This should generally be used over git verify-commit, since verify will
check the identity included in the signature's certificate.
If no revision is specified, HEAD is used.`,
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, args []string) error {
// Simulate unknown flag errors.
if o.Cert != "" {
return fmt.Errorf("unknown flag: --certificate")
Expand Down
2 changes: 1 addition & 1 deletion internal/commands/version/version.go
Expand Up @@ -29,7 +29,7 @@ func New(cfg *config.Config) *cobra.Command {
cmd := &cobra.Command{
Use: "version",
Short: "print Gitsign version",
RunE: func(cmd *cobra.Command, args []string) error {
RunE: func(_ *cobra.Command, _ []string) error {
v := version.GetVersionInfo()
fmt.Println("gitsign version", v.GitVersion)
if len(v.Env) > 0 {
Expand Down

0 comments on commit 1fcaab3

Please sign in to comment.