mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🎈 perf: 优化if
This commit is contained in:
parent
4f97a5c7b2
commit
4fd9c97f8a
@ -361,9 +361,7 @@ export class tools extends plugin {
|
||||
e.reply(biliInfo);
|
||||
// 总结
|
||||
const summary = await this.getBiliSummary(videoInfo);
|
||||
if (summary !== "") {
|
||||
e.reply(summary)
|
||||
}
|
||||
summary && e.reply(summary);
|
||||
return true;
|
||||
} else {
|
||||
e.reply(biliInfo);
|
||||
@ -390,9 +388,7 @@ export class tools extends plugin {
|
||||
});
|
||||
// 总结
|
||||
const summary = await this.getBiliSummary(videoInfo);
|
||||
if (summary !== "") {
|
||||
e.reply(summary)
|
||||
}
|
||||
summary && e.reply(summary);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user