Skip to content

Commit

Permalink
fix creation of green report
Browse files Browse the repository at this point in the history
  • Loading branch information
taraspos committed Oct 9, 2020
1 parent 4d31998 commit da9233d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/bitbucket/annotator.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (r *ReportAnnotator) Flush(ctx context.Context) error {
for tool, annotations := range r.annotations {
reportID := reportID(reporter, tool)
title := fmt.Sprintf("[%s] %s report", tool, reporter)
if len(r.annotations) == 0 {
if len(annotations) == 0 {
// if no annotation, create Passed report
if err := r.createOrUpdateReport(ctx, reportID, title, reportResultPassed); err != nil {
return err
Expand Down

0 comments on commit da9233d

Please sign in to comment.