forked from mirrors/probot
Fix lint errors
This commit is contained in:
parent
5d8e229353
commit
1ae62eaa68
|
@ -1,4 +1,6 @@
|
|||
module.exports = async function paginate(responsePromise, callback) {
|
||||
/* eslint-disable no-await-in-loop */
|
||||
|
||||
module.exports = async (responsePromise, callback) => {
|
||||
let response = await responsePromise;
|
||||
let collection = await callback(response);
|
||||
|
||||
|
@ -8,4 +10,4 @@ module.exports = async function paginate(responsePromise, callback) {
|
|||
}
|
||||
|
||||
return collection;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@ class Robot {
|
|||
async auth(id) {
|
||||
let github;
|
||||
|
||||
if(id) {
|
||||
if (id) {
|
||||
const token = await this.cache.wrap(`integration:${id}:token`, () => {
|
||||
this.log.info(`creating token for installation ${id}`);
|
||||
return this.integration.createToken(id);
|
||||
|
|
Loading…
Reference in New Issue