Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
fix: fix return when no globby
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed Feb 6, 2018
1 parent 927bda0 commit dde0f09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export class Plugin implements IPlugin {
globby = require('globby')
} catch {
debug('not loading plugins, globby not found')
return {} as any
return []
}
debug(`loading IDs from ${this.commandsDir}`)
const ids = globby.sync(['**/*.+(js|ts)', '!**/*.+(d.ts|test.ts|test.js)'], {cwd: this.commandsDir})
Expand Down

0 comments on commit dde0f09

Please sign in to comment.