Skip to content

Commit

Permalink
addressing comment
Browse files Browse the repository at this point in the history
  • Loading branch information
smonero committed May 7, 2024
1 parent 195426f commit b868113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/neptune/lyft/activities/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (a *Github) GithubListPRs(ctx context.Context, request ListPRsRequest) (Lis
}

func IsPRAutomated(pr *github.PullRequest) bool {
if pr.Labels == nil {
if pr == nil || len(pr.Labels) == 0 {
return false
}
for _, label := range pr.Labels {
Expand Down

0 comments on commit b868113

Please sign in to comment.