Skip to content

Commit

Permalink
Fix travis isEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Oct 9, 2024
1 parent a7998e3 commit b6541f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/knip/src/plugins/travis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const title = 'Travis CI';

const enablers = 'This plugin is enabled when a `.travis.yml` file is found in the root folder.';

const isEnabled: IsPluginEnabled = async ({ cwd }) => Boolean(await _glob({ cwd, patterns: ['.travis.yml'] }));
const isEnabled: IsPluginEnabled = async ({ cwd }) => (await _glob({ cwd, patterns: ['.travis.yml'] })).length > 0;

const config = ['.travis.yml'];

Expand Down

0 comments on commit b6541f3

Please sign in to comment.