Skip to content

Commit

Permalink
fix: dont exit early if no user plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonnalley committed Sep 20, 2023
1 parent b0e66ec commit abe4c0c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/commands/plugins/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ export default class PluginsIndex extends Command {
plugins = plugins.filter(p => p.type !== 'core' && p.type !== 'dev')
}

if (plugins.length === 0) {
this.log('No plugins installed.')
return []
}
if (plugins.length === 0) this.log('No plugins installed.')

const results = this.config.getPluginsList()
const userAndLinkedPlugins = new Set(results.filter(p => p.type === 'user' || p.type === 'link').map(p => p.name))
Expand Down

0 comments on commit abe4c0c

Please sign in to comment.