Skip to content

Commit

Permalink
lint versionCommand function
Browse files Browse the repository at this point in the history
  • Loading branch information
jackgopack4 committed Sep 18, 2024
1 parent 53bb6e9 commit 9d1e979
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/builder/internal/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,13 @@ func binVersion(fn debugReadBuildInfoFunc) (string, error) {
}

func versionCommand() *cobra.Command {
var err error
return &cobra.Command{
Use: "version",
Short: "Version of ocb",
Long: "Prints the version of the ocb binary",
RunE: func(cmd *cobra.Command, _ []string) error {
version, err := binVersion(debug.ReadBuildInfo)
version, err = binVersion(debug.ReadBuildInfo)
if err != nil {
return err
}
Expand Down

0 comments on commit 9d1e979

Please sign in to comment.