Skip to content

Commit

Permalink
fix: add commit.prurl check (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafaelGSS authored Jul 19, 2024
1 parent 85790dc commit 1ceae1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion branch-diff.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async function findMergeBase (repoPath, branch1, branch2) {
}

function normalizeIfTrailingSlash (commit) {
if (commit.prUrl.at(-1) === '/') {
if (commit.prUrl && commit.prUrl.at(-1) === '/') {
commit.prUrl = commit.prUrl.slice(0, -1)
}
}
Expand Down

0 comments on commit 1ceae1a

Please sign in to comment.