Skip to content

Commit

Permalink
chore: apply review changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokozuna59 committed Nov 15, 2023
1 parent 4c43bae commit 692a747
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/mermaid/src/diagrams/pie/pieParser.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Pie, PieSection } from 'mermaid-parser';
import type { Pie } from 'mermaid-parser';
import { parse } from 'mermaid-parser';

import { log } from '../../logger.js';
Expand All @@ -10,9 +10,7 @@ import { db } from './pieDb.js';
function populateDb(ast: Pie, db: PieDB) {
populateCommonDb(ast, db);
db.setShowData(ast.showData);
ast.sections.map((section: PieSection) => {
db.addSection(section);
});
ast.sections.map(db.addSection);
}

export const parser: ParserDefinition = {
Expand Down

0 comments on commit 692a747

Please sign in to comment.