[CodeFactor] Apply fixes

[ci skip] [skip ci]
This commit is contained in:
codefactor-io 2021-01-10 08:31:25 +00:00
parent 7923ebf123
commit d8988068b3
1 changed files with 2 additions and 2 deletions

View File

@ -25,13 +25,13 @@ const config = {
module.exports = async (ctx) => {
const cfg = config[ctx.params.caty];
console.log(cfg.link)
console.log(cfg.link);
if (!cfg) {
throw Error('Bad category. See <a href="https://docs.rsshub.app/government.html#guang-dong-sheng-jiao-yu-ting">docs</a>');
}
const currentUrl = url.resolve(rootUrl, cfg.link);
const response = await got({ method: 'get', url: currentUrl });
const $ = cheerio.load(response.data);