Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Shinigami <chrissi92@hotmail.de>
  • Loading branch information
ST-DDT and Shinigami92 authored Dec 21, 2024
1 parent 22039a9 commit c23f91f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/.vitepress/components/api-docs/method.vue
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function initRefresh(): Element[] {
return result;
}
async function onRefresh() {
async function onRefresh(): Promise<void> {
if (refresh != null && codeBlock.value != null) {
codeLines ??= initRefresh();
Expand All @@ -102,7 +102,7 @@ async function onRefresh() {
for (let i = 0; i < results.length; i++) {
const result = results[i];
const domLine = codeLines[i];
const prettyResult = await formatResult(result);
const prettyResult = formatResult(result);
const resultLines = prettyResult.split('\\n');
if (resultLines.length === 1) {
Expand Down

0 comments on commit c23f91f

Please sign in to comment.