Update index.js

This commit is contained in:
Benjamin Lannon 2018-12-05 21:07:21 -05:00
commit cde910f8b0

View file

@ -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 });