mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-02-05 15:11:15 +00:00
Remove unused isFile variable in GetPluginListHandler
Cleaned up the GetPluginListHandler by removing the unused isFile variable, as it was no longer needed for plugin list processing.
This commit is contained in:
parent
d3b23065b1
commit
dfd90cce13
@ -60,11 +60,9 @@ export const GetPluginListHandler: RequestHandler = async (_req, res) => {
|
||||
|
||||
for (const item of items) {
|
||||
let id = '';
|
||||
let isFile = false;
|
||||
|
||||
if (item.isFile()) {
|
||||
if (!['.js', '.mjs'].includes(path.extname(item.name))) continue;
|
||||
isFile = true;
|
||||
id = getPluginId(item.name, true);
|
||||
} else if (item.isDirectory()) {
|
||||
id = getPluginId(item.name, false);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user