From 6b2424dc36adeeb6b0f744f0906553bb1b68a76f Mon Sep 17 00:00:00 2001 From: Reda Al Sulais Date: Thu, 17 Aug 2023 09:02:15 +0300 Subject: [PATCH] return back `` and rename `parse` result to `ast` --- packages/mermaid/src/diagrams/info/infoParser.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mermaid/src/diagrams/info/infoParser.ts b/packages/mermaid/src/diagrams/info/infoParser.ts index 27b1b21610..b4df33600b 100644 --- a/packages/mermaid/src/diagrams/info/infoParser.ts +++ b/packages/mermaid/src/diagrams/info/infoParser.ts @@ -14,8 +14,8 @@ function populateDb(ast: Info, db: InfoDB) { export const parser: ParserDefinition = { parse: (input: string): void => { - const result = parse('info', input); - log.debug(result); - populateDb(result, db); + const ast: Info = parse('info', input); + log.debug(ast); + populateDb(ast, db); }, };