3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Answer prose round 1: 0 🔴, 1 🟡 (0 misread); the three copied helper comments deleted

This commit is contained in:
2026-11-10 22:58:24 +01:00
committed by Lillem4n
parent 3b94524362
commit 1fd07949dd
3 changed files with 0 additions and 3 deletions
-1
View File
@@ -9,7 +9,6 @@ import { adfToHtml, adfToLosslessMarkdown, adfToPortableMarkdown } from '../inde
import { readAdfDocument, writableContent } from './document.ts'
import { largestNesting } from '../nesting.ts'
// A message is free text: a refusal pins its code and only the facts the message must name.
function refused(result: Result<unknown>, errorCode: ConvertErrorCode, ...facts: string[]): void {
assert.equal(result.ok ? 'accepted' : result.error.code, errorCode)
const message = result.ok ? '' : result.error.message