Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Aug 26, 2023
1 parent 1b0ce6d commit 75eedaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tabby-plugin-manager/src/services/pluginManager.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ export class PluginManagerService {
map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))),
map(plugins => plugins.filter(x => !PLUGIN_BLACKLIST.includes(x.packageName))),
map(plugins => {
const mapping: Record<string, PluginInfo[]|undefined> = {}
const mapping: Record<string, PluginInfo[]> = {}
for (const p of plugins) {
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
mapping[p.name] ??= []
mapping[p.name].push(p)
}
Expand Down

0 comments on commit 75eedaf

Please sign in to comment.