Skip to content

Commit

Permalink
Shortened condition for appending plural suffix to final log of API s…
Browse files Browse the repository at this point in the history
…earch methods ↞ [auto-sync from `adamlui/js-utils`]
  • Loading branch information
adamlui authored and kudo-sync-bot committed May 6, 2024
1 parent 96406fa commit 994985b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node.js/src/minify.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function findJS(searchDir, options = {}) {
if (!options.isRecursing && options.verbose) {
console.info('findJS() » Search complete! '
+ ( jsFiles.length == 0 ? 'No' : jsFiles.length )
+ ` file${ jsFiles.length == 0 || jsFiles.length > 1 ? 's' : '' } found.`);
+ ` file${ jsFiles.length == 1 ? '' : 's' } found.`);
if (findJS.caller.name != 'minify' && !process.argv.some(arg => arg.includes('gulp')) &&
!/cli(?:\.min)?\.js$/.test(require.main.filename))
console.info('findJS() » Check returned array.');
Expand Down

0 comments on commit 994985b

Please sign in to comment.