fix: remove a redundant variable assignment (#2580)

Value assigned to variable 'type' at this point is not used afterwards.
This commit is contained in:
Henry Wang
2019-07-08 11:51:15 +08:00
committed by DIYgod
parent 39a2b905cf
commit 47dd948d96
+1 -3
View File
@@ -10,7 +10,7 @@ module.exports = async (ctx) => {
responseType: 'buffer',
});
let type = ctx.params.type || 1;
const type = ctx.params.type || 1;
let info = '新闻动态';
let word = 'news';
if (type === '2') {
@@ -22,8 +22,6 @@ module.exports = async (ctx) => {
} else if (type === '4') {
info = '教研动态';
word = 'Teach_Research';
} else {
type = '1';
}
const response = await got_ins.get(host + word);