From a9991f5451d9c87cb911d455c810cb110de080f6 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Mon, 4 Feb 2019 14:57:38 -0800 Subject: [PATCH] chore: fix falsy comments edge case in release notes (#16720) --- script/release-notes/notes.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/script/release-notes/notes.js b/script/release-notes/notes.js index 0499f016de..47aeb94180 100644 --- a/script/release-notes/notes.js +++ b/script/release-notes/notes.js @@ -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'