Skip to content

Commit

Permalink
[bugfix] Don't try to add nil filtered statuses to context (#3388)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst authored Oct 4, 2024
1 parent 8bd8c6f commit d3d6e3f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/processing/common/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,12 @@ func (p *Processor) GetVisibleAPIStatuses(
continue
}

if apiStatus == nil {
// Status was
// filtered out.
continue
}

// Append converted status to return slice.
apiStatuses = append(apiStatuses, *apiStatus)
}
Expand Down

0 comments on commit d3d6e3f

Please sign in to comment.