Skip to content

Commit

Permalink
Apply suggested style from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Sidharth Vinod <[email protected]>
  • Loading branch information
Yokozuna59 and sidharthv96 authored Nov 15, 2023
1 parent 692a747 commit 76f2974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/mermaid/src/diagrams/pie/pieParser.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import type { Pie } from 'mermaid-parser';
import { parse } from 'mermaid-parser';

import { log } from '../../logger.js';
import type { ParserDefinition } from '../../diagram-api/types.js';
import { populateCommonDb } from '../common/populateCommonDb.js';
import type { PieDB } from './pieTypes.js';
import { db } from './pieDb.js';

function populateDb(ast: Pie, db: PieDB) {
const populateDb = (ast: Pie, db: PieDB) => {
populateCommonDb(ast, db);
db.setShowData(ast.showData);
ast.sections.map(db.addSection);
Expand Down

0 comments on commit 76f2974

Please sign in to comment.