Skip to content

Commit

Permalink
fix: search plugin issue
Browse files Browse the repository at this point in the history
  • Loading branch information
imba97 committed Nov 14, 2024
1 parent 71bfe11 commit 3034de4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ export async function searchPlugin(pluginNames: string[]): Promise<PluginInfo[]>
try {
const json = JSON.parse(result.content)

if (finedNames.includes(json.name)) {
continue
}
json.forEach((plugin: Record<string, any>) => {
if (finedNames.includes(plugin.name)) {
return
}

finedNames.push(json.name)
finedNames.push(plugin.name)

json.forEach((plugin: Record<string, any>) => {
plugins.push({
name: plugin.name,
version: plugin.version,
Expand Down

0 comments on commit 3034de4

Please sign in to comment.