From 843f5a0fc53ed676aa68703ce98924fa62fea762 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Tue, 10 Nov 2026 22:19:57 +0100 Subject: [PATCH] Drop the comment on unreadableNode that restates its name --- src/adf/document.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/adf/document.ts b/src/adf/document.ts index 0af27ca..f480bbb 100644 --- a/src/adf/document.ts +++ b/src/adf/document.ts @@ -202,7 +202,6 @@ function isNodeArray(value: readonly unknown[]): value is AdfNode[] { return unreadableNode(value) === undefined } -// The first node in document order that is not an ADF node, and its path. function unreadableNode(content: readonly unknown[]): { fault: ConvertFault; path: ConvertErrorPath } | undefined { const refused = firstRefusal(content, unreadableChildren, nodeRefusal) return refused === undefined ? undefined : { fault: { code: 'not-an-adf-document', message: refused.message }, path: refused.path }