mirror of
https://github.com/DIYgod/RSSHub.git
synced 2026-09-24 23:12:34 +08:00
refactor: format
This commit is contained in:
@@ -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 = '暂无更新内容';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user