mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 01:09:42 +02:00
chore: Simplify dataFetcher helper functions
This commit is contained in:
@@ -198,10 +198,10 @@ export const dataFetcher = (
|
|||||||
|
|
||||||
if (itemId !== 'root') {
|
if (itemId !== 'root') {
|
||||||
let shape = SHAPE_STATE;
|
let shape = SHAPE_STATE;
|
||||||
|
// The if === true / false can be removed if we can guarantee that the parsedItem.start is always a boolean
|
||||||
if (parsedItem.start === true) {
|
if (parsedItem.start === true) {
|
||||||
shape = SHAPE_START;
|
shape = SHAPE_START;
|
||||||
}
|
} else if (parsedItem.start === false) {
|
||||||
if (parsedItem.start === false) {
|
|
||||||
shape = SHAPE_END;
|
shape = SHAPE_END;
|
||||||
}
|
}
|
||||||
if (parsedItem.type !== DEFAULT_STATE_TYPE) {
|
if (parsedItem.type !== DEFAULT_STATE_TYPE) {
|
||||||
|
Reference in New Issue
Block a user