Skip to content

Commit

Permalink
fix(cd-service): check release not to be nil in the check minor flag …
Browse files Browse the repository at this point in the history
…function
  • Loading branch information
AminSlk committed Sep 9, 2024
1 parent 0fd584e commit b13604f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/cd-service/pkg/repository/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,9 @@ func (c *CreateApplicationVersion) checkMinorFlags(ctx context.Context, transact
if err != nil {
return false, err
}
if nextRelease == nil {
return false, fmt.Errorf("next release exists in the all releases but not in the release table!")
}
nextRelease.Metadata.IsMinor = compareManifests(ctx, c.Manifests, nextRelease.Manifests.Manifests, minorRegexes)
err = dbHandler.DBInsertRelease(ctx, transaction, *nextRelease, nextRelease.EslVersion)
if err != nil {
Expand Down

0 comments on commit b13604f

Please sign in to comment.