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
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD
1 changed files with 4 additions and 3 deletions

View File

@ -339,7 +339,8 @@ const contentLoaded = function () {
if (mermaid.startOnLoad) {
const { startOnLoad } = mermaidAPI.getConfig();
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);
void executeQueue();
executeQueue().catch(reject);
});
};
@ -451,7 +452,7 @@ const renderAsync = (
);
});
executionQueue.push(performCall);
void executeQueue();
executeQueue().catch(reject);
});
};