Skip to content

Commit

Permalink
Attempt to pass eslint check
Browse files Browse the repository at this point in the history
  • Loading branch information
pavmick authored Sep 5, 2024
1 parent 6ac4a4c commit 256f4cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/writers/lvgl/lv_table_glyf.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class LvGlyf extends Glyf {

let result = [];
this.lv_data.forEach((d, idx) => {
if (idx === 0 || d.bin.length == 0) return;
if (idx === 0 || d.bin.length === 0) return;
const code_hex = d.glyph.code.toString(16).toUpperCase();
const code_str = JSON.stringify(String.fromCodePoint(d.glyph.code));

let txt = ` /* U+${code_hex.padStart(4, '0')} ${code_str} */
${u.long_dump(d.bin, { hex: true })},`;

result.length > 0 && result.push('\n\n');
if (result.length > 0) result.push('\n\n');

result.push(txt);
});
Expand Down

0 comments on commit 256f4cc

Please sign in to comment.