Fix lint errors

This commit is contained in:
Brandon Keepers 2017-03-30 15:50:13 -07:00
parent 5d8e229353
commit 1ae62eaa68
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
2 changed files with 5 additions and 3 deletions

View File

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

View File

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