fix linting issue

This commit is contained in:
Steph
2024-05-22 13:45:58 -07:00
parent 3d44eb0f42
commit 20b03189df

View File

@@ -20,7 +20,7 @@ const config = getConfig();
let classes = {} as Record<string, ClassDef>; let classes = {} as Record<string, ClassDef>;
const sanitizeText = (txt:string) => common.sanitizeText(txt, config); const sanitizeText = (txt: string) => common.sanitizeText(txt, config);
/** /**
* Called when the parser comes across a (style) class definition * Called when the parser comes across a (style) class definition
@@ -93,7 +93,7 @@ const populateBlockDatabase = (_blockList: Block[] | Block[][], parent: Block):
const children = []; const children = [];
for (const block of blockList) { for (const block of blockList) {
if (block.label) { if (block.label) {
block.label = sanitizeText(block.label); block.label = sanitizeText(block.label);
} }
if (block.type === 'classDef') { if (block.type === 'classDef') {
addStyleClass(block.id, block.css); addStyleClass(block.id, block.css);