From cde910f8b0b98d7b623ad8df45efd119bd17b2e3 Mon Sep 17 00:00:00 2001 From: Benjamin Lannon Date: Wed, 5 Dec 2018 21:07:21 -0500 Subject: [PATCH] Update index.js --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 861b990..3ceaad6 100644 --- a/index.js +++ b/index.js @@ -24,7 +24,7 @@ async function run() { let idx = -1; if (labels.length > 0) { - idx = labels.indexOf(issue => issue.name === name); + idx = labels.findIndex(issue => issue.name === name); } console.log({ idx });