diff --git a/depell/src/index.js b/depell/src/index.js index 8e7a7797..949a1624 100644 --- a/depell/src/index.js +++ b/depell/src/index.js @@ -336,10 +336,10 @@ async function fmt(target) { const instance = await getFmtInstance(); const decoder = new TextDecoder('utf-8'); const fmt = modifyCode(instance, code, 'fmt'); - if (typeof fmt !== "string") never() + if (typeof fmt !== "string") return; const codeBytes = new TextEncoder().encode(fmt); const tok = modifyCode(instance, fmt, 'tok'); - if (!(tok instanceof Uint8Array)) never(); + if (!(tok instanceof Uint8Array)) return; target.innerHTML = ''; let start = 0; let kind = tok[0];