From c23f91f5278a2cc581d6d94586ee5386985adff5 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 21 Dec 2024 10:02:26 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Shinigami --- docs/.vitepress/components/api-docs/method.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/.vitepress/components/api-docs/method.vue b/docs/.vitepress/components/api-docs/method.vue index e4a86d3daeb..8938118bde1 100644 --- a/docs/.vitepress/components/api-docs/method.vue +++ b/docs/.vitepress/components/api-docs/method.vue @@ -87,7 +87,7 @@ function initRefresh(): Element[] { return result; } -async function onRefresh() { +async function onRefresh(): Promise { if (refresh != null && codeBlock.value != null) { codeLines ??= initRefresh(); @@ -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) {