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 daf937f commit de87570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions node.js/src/scss-to-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ function findSCSS(searchDir, options = {}) {
// Log/return final result
if (!options.isRecursing && options.verbose) {
console.info('findSCSS() » Search complete! '
+ ( scssFiles.length == 0 ? 'No' : scssFiles.length )
+ ` file${ scssFiles.length == 0 || scssFiles.length > 1 ? 's' : '' } found.`);
+ ( scssFiles.length == 0 ? 'No' : scssFiles.length )
+ ` file${ scssFiles.length == 1 ? '' : 's' } found.`);
if (findSCSS.caller.name != 'compile' && !/cli(?:\.min)?\.js$/.test(require.main.filename))
console.info('findSCSS() » Check returned array.');
}
Expand Down

0 comments on commit de87570

Please sign in to comment.