diff --git a/scripts/travis-bench.js b/scripts/travis-bench.js index 6aa08f393e..37cf7e6773 100644 --- a/scripts/travis-bench.js +++ b/scripts/travis-bench.js @@ -87,14 +87,9 @@ fetch(`https://${githubUsername}:${githubToken}@api.github.com/repos/sveltejs/sv if (res.length === 0) { addComment = true; - } else if (res[res.length - 1].user.id !== id) { + } else if (res[res.length - 1].user.id === id) { addComment = true; - - res.forEach(reply => { - if (reply.user.id === id) { - editId = reply.id; - } - }); + editId = res[res.length - 1].id; } if (addComment) {