Skip to content

Commit

Permalink
chore: fix falsy comments edge case in release notes (#16720)
Browse files Browse the repository at this point in the history
  • Loading branch information
codebytere committed Feb 4, 2019
1 parent af64140 commit a9991f5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions script/release-notes/notes.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@ const setPullRequest = (commit, owner, repo, number) => {

const getNoteFromClerk = async (number, owner, repo) => {
const comments = await getComments(number, owner, repo)
if (!comments && !comments.data) {
return
}
if (!comments || !comments.data) return

const CLERK_LOGIN = 'release-clerk[bot]'
const PERSIST_LEAD = '**Release Notes Persisted**\n\n'
Expand Down

0 comments on commit a9991f5

Please sign in to comment.