🧹 code cleanup

This commit is contained in:
ful1e5 2020-09-01 16:47:47 +05:30
parent 08bfe1436f
commit 815f6c491f

View file

@ -33,7 +33,7 @@ const renderCursors = async (configs: Record<string, Config>) => {
// Render // Render
try { try {
for (let svgPath of staticCursors) { for (let svgPath of staticCursors) {
const buffer = fs.readFileSync(path.resolve(svgPath), "utf8"); const buffer = fs.readFileSync(svgPath, "utf8");
if (!buffer) throw new Error(`${svgPath} File Read error`); if (!buffer) throw new Error(`${svgPath} File Read error`);
// Generating HTML Template // Generating HTML Template