Skip to content

Commit

Permalink
fix: Fix handling when no new version is available.
Browse files Browse the repository at this point in the history
  • Loading branch information
goloroden committed Jul 19, 2022
1 parent 7702871 commit 816ed71
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package cli

import (
"fmt"
"os"

gogit "github.com/go-git/go-git/v5"
"github.com/rs/zerolog/log"
Expand Down Expand Up @@ -51,10 +50,6 @@ var RootCommand = &cobra.Command{
}

nextVersion, hasNextVersion := versioning.CalculateNextVersion(result.LatestReleaseVersion, result.ConventionalCommitTypes)
if !hasNextVersion {
log.Error().Msg("no next version found")
os.Exit(2)
}

lines := cliutil.Format(nextVersion, hasNextVersion, rootFormatFlag)
for _, line := range lines {
Expand Down

0 comments on commit 816ed71

Please sign in to comment.