Skip to content

Commit

Permalink
Technically pr.data.body may be null
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Feb 26, 2024
1 parent 1638cf9 commit 5b9a0ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/binder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ async function updatePrDescription(
binderComment: string,
pr: PrResponseT
): Promise<boolean> {
if (pr.data.body.includes(binderComment)) {
if (pr.data.body?.includes(binderComment)) {
core.debug(
`Not updating PR description ${pr.data.html_url}, already contains ${binderComment}`
)
Expand Down

0 comments on commit 5b9a0ae

Please sign in to comment.