From 57431346bd42fb0e832a08c92d85380783da8505 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Fri, 20 Sep 2019 11:58:01 +0800 Subject: [PATCH] refactor: format --- lib/routes/pgyer/app.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/routes/pgyer/app.js b/lib/routes/pgyer/app.js index d729d647eb..0e4ec431a0 100644 --- a/lib/routes/pgyer/app.js +++ b/lib/routes/pgyer/app.js @@ -47,7 +47,7 @@ module.exports = async (ctx) => { .split('/'); cssName[cssName.length - 1].split('.').forEach((val) => { Object.keys(indexOfEle).forEach((item) => { - if (item == val) { + if (item === val) { pageTemplate = val; } }); @@ -77,7 +77,7 @@ module.exports = async (ctx) => { let appStatus = $(`${indexOfEle[pageTemplate].appStatus}`) .text() .trim(); - if (appStatus == '点击安装') { + if (appStatus === '点击安装') { appStatus = '可下载安装'; } @@ -85,7 +85,7 @@ module.exports = async (ctx) => { .text() .trim() .slice(4); - if (updateIntro == '') { + if (updateIntro === '') { updateIntro = '暂无更新内容'; }