Skip to content

Commit

Permalink
event-reporter: added condition to not send empty array for ChangeRev…
Browse files Browse the repository at this point in the history
…isions metadata
  • Loading branch information
oleksandr-codefresh committed Oct 5, 2024
1 parent dc7b414 commit 33e0b97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion event_reporter/reporter/app_revision.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func (s *applicationEventReporter) getApplicationRevisionsMetadata(ctx context.C
logCtx.WithError(err).Warnf("failed to get application(%s) change revisions metadata, resuming", a.GetName())
}

if err == nil && operationChangeRevisionsMetadata != nil {
if err == nil && operationChangeRevisionsMetadata != nil && len(operationChangeRevisionsMetadata) > 0 {
result.ChangeRevisions = operationChangeRevisionsMetadata
}
}
Expand Down

0 comments on commit 33e0b97

Please sign in to comment.