mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 14:59:53 +02:00
fix: Remove unnecessary void's.
Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
@@ -339,7 +339,8 @@ const contentLoaded = function () {
|
|||||||
if (mermaid.startOnLoad) {
|
if (mermaid.startOnLoad) {
|
||||||
const { startOnLoad } = mermaidAPI.getConfig();
|
const { startOnLoad } = mermaidAPI.getConfig();
|
||||||
if (startOnLoad) {
|
if (startOnLoad) {
|
||||||
void mermaid.init();
|
// eslint-disable-next-line no-console
|
||||||
|
mermaid.init().catch((err) => console.error('Mermaid failed to initialize', err));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -418,7 +419,7 @@ const parseAsync = (txt: string): Promise<boolean> => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
executionQueue.push(performCall);
|
executionQueue.push(performCall);
|
||||||
void executeQueue();
|
executeQueue().catch(reject);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -451,7 +452,7 @@ const renderAsync = (
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
executionQueue.push(performCall);
|
executionQueue.push(performCall);
|
||||||
void executeQueue();
|
executeQueue().catch(reject);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user