mirror of
https://github.com/larvit/adf-codec.git
synced 2026-11-18 22:25:44 +01:00
Answer prose round 1: 0 🔴, 1 🟡 (0 misread); the three copied helper comments deleted
This commit is contained in:
@@ -28,7 +28,6 @@ function position(result: Result<AdfDocument, ParseError>): SourcePosition | str
|
||||
return result.ok ? 'built' : result.error.position
|
||||
}
|
||||
|
||||
// A message is free text: a refusal pins its code and only the facts the message must name.
|
||||
function refused(result: Result<AdfDocument>, errorCode: ConvertErrorCode, ...facts: string[]): void {
|
||||
assert.equal(code(result), errorCode)
|
||||
const message = result.ok ? '' : result.error.message
|
||||
|
||||
Reference in New Issue
Block a user