Skip to content

Commit

Permalink
core(primitives): fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
brionmario committed Feb 14, 2023
1 parent 8d4342f commit 89f5025
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/primitives/scripts/build-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ const PATHS = {

const iconFiles = fs.readdirSync(PATHS.source.icons);

const svgFilepaths = iconFiles.reduce((iconFilePaths, iconFile) => path.parse(iconFile).ext === '.svg' ?
(iconFilePaths.push(path.resolve(path.join(PATHS.source.icons, iconFile))), iconFilePaths) : iconFilePaths, []);
const svgFilepaths = iconFiles.reduce((iconFilePaths, iconFile) => (path.parse(iconFile).ext === '.svg'
? (iconFilePaths.push(path.resolve(path.join(PATHS.source.icons, iconFile))), iconFilePaths)
: iconFilePaths), []);

if (svgFilepaths.length === 0) {
logger.error('No input SVG file(s) found');
Expand Down

0 comments on commit 89f5025

Please sign in to comment.