diff --git a/build/check-json.js b/build/check-json.js index debb71ba4b..828696d698 100755 --- a/build/check-json.js +++ b/build/check-json.js @@ -23,8 +23,8 @@ const jsonIconList = Object.keys(fontJson) const files = await fs.readdir(iconsDir) const svgIconList = files.map(file => file.slice(0,-4)) - const onlyInJson = jsonIconList.filter(i => !svgIconList.includes(i)) - const onlyInSvg = svgIconList.filter(i => !jsonIconList.includes(i)) + const onlyInJson = jsonIconList.filter(icon => !svgIconList.includes(icon)) + const onlyInSvg = svgIconList.filter(icon => !jsonIconList.includes(icon)) if (onlyInJson.length !== 0 || onlyInSvg !== 0) { if (onlyInJson.length > 0) {