Skip to content

Commit

Permalink
fix: check nullable value for reviewers (#709)
Browse files Browse the repository at this point in the history
Co-authored-by: shipjs <[email protected]>
  • Loading branch information
Eunjae Lee and shipjs authored Mar 6, 2020
1 parent 594982a commit df7c0be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shipjs/src/step/prepare/createPullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ export default async ({
});

if (
pullRequestReviewers.length > 0 ||
pullRequestTeamReviewers.length > 0
(pullRequestReviewers || []).length > 0 ||
(pullRequestTeamReviewers || []).length > 0
) {
await octokit.pulls.createReviewRequest({
owner,
Expand Down

0 comments on commit df7c0be

Please sign in to comment.