Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
chore: promisified getBotPrLabels
  • Loading branch information
mmarchini committed Aug 20, 2020
commit e7eada122ea1f23b1a689b6e6ad2476dc65b6737
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