refactor: format

This commit is contained in:
DIYgod
2019-09-20 11:58:01 +08:00
parent f8816dcd07
commit 57431346bd
+3 -3
View File
@@ -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 = '暂无更新内容';
}