fix: Remove unnecessary void's.

Co-authored-by: Alois Klink <alois@aloisklink.com>
This commit is contained in:
Sidharth Vinod
2023-01-24 16:08:43 +05:30
parent ead4037963
commit b36e5d0d3b

View File

@@ -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);
}); });
}; };