Skip to content

Commit

Permalink
chore: promisified getBotPrLabels
Browse files Browse the repository at this point in the history
  • Loading branch information
mmarchini committed Aug 20, 2020
1 parent 9d733bd commit e7eada1
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/node-repo.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,7 @@ function getBotPrLabels (options, cb) {
page: 1,
per_page: 100, // we probably won't hit this
number: options.prId
}, (err, res) => {
if (err) {
return cb(err)
}

}).then(res => {
const events = res.data || []
const ourLabels = []

Expand All @@ -174,7 +170,7 @@ function getBotPrLabels (options, cb) {
}

cb(null, ourLabels)
})
}, cb)
}

function stringsInCommon (arr1, arr2) {
Expand Down

0 comments on commit e7eada1

Please sign in to comment.