fix lint warning (#335)

This commit is contained in:
阿卡琳 2018-07-03 01:16:25 +08:00 committed by DIYgod
parent 95100ae5b0
commit e3e353a610
3 changed files with 5 additions and 3 deletions

View File

@ -31,7 +31,7 @@ module.exports = async (ctx) => {
try {
oldPosts = JSON.parse(await ctx.cache.get(cacheName));
} catch (_e) {
/** no need handle here: parseError */
// no need handle here: parseError
}
if (oldPosts === null) {

View File

@ -4,7 +4,7 @@ const config = require('../../config');
const util = require('./util');
module.exports = async (ctx) => {
let tag = ctx.params.tag || 'ntr';
const tag = ctx.params.tag || 'ntr';
const url = `https://blog.reimu.net/archives/tag/${tag}`;

View File

@ -1,6 +1,8 @@
const util = {
getArticleData(articles, $) {
if (!articles) return [];
if (!articles) {
return [];
}
return articles
.map((index, article) => {