mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2026-01-17 13:50:36 +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
ec6762d916
commit
163bb88751
@ -60,11 +60,9 @@ export const GetPluginListHandler: RequestHandler = async (_req, res) => {
|
|||||||
|
|
||||||
for (const item of items) {
|
for (const item of items) {
|
||||||
let id = '';
|
let id = '';
|
||||||
let isFile = false;
|
|
||||||
|
|
||||||
if (item.isFile()) {
|
if (item.isFile()) {
|
||||||
if (!['.js', '.mjs'].includes(path.extname(item.name))) continue;
|
if (!['.js', '.mjs'].includes(path.extname(item.name))) continue;
|
||||||
isFile = true;
|
|
||||||
id = getPluginId(item.name, true);
|
id = getPluginId(item.name, true);
|
||||||
} else if (item.isDirectory()) {
|
} else if (item.isDirectory()) {
|
||||||
id = getPluginId(item.name, false);
|
id = getPluginId(item.name, false);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user