Skip to content

Commit

Permalink
fix: swap exit code between success with and without change (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
olblak authored Jan 13, 2025
1 parent 3e549f6 commit d3d0af4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/core/result/changelog.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ type Changelog struct {

func (c Changelog) ExitCode() int {
if len(c.Created) == 0 && len(c.Modified) == 0 {
return 1
return 0
}
return 0
return 1
}

// UpdateResult update the result with the current changelog information
Expand Down

0 comments on commit d3d0af4

Please sign in to comment.