pixiv: disable lint warning (#598)

#588 

token刷新功能建议换成 cron job
This commit is contained in:
Henry Wang
2018-08-30 21:55:59 +08:00
committed by DIYgod
parent 1ef435db48
commit 9385f07bb5
+2 -1
View File
@@ -73,7 +73,7 @@ async function tokenLoop() {
token = res.access_token;
let refresh_token = res.refresh_token;
let expires_in = res.expires_in * 0.9;
// eslint-disable-next-line no-constant-condition
/* eslint-disable no-constant-condition, no-await-in-loop */
while (true) {
await wait(expires_in * 1000);
try {
@@ -87,6 +87,7 @@ async function tokenLoop() {
logger.err(`Pixiv refresh token failed, retry in ${expires_in} seconds.`, err);
}
}
/* eslint-enable no-await-in-loop */
}
}