3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

Drop the comment on unreadableNode that restates its name

This commit is contained in:
2026-11-10 22:19:57 +01:00
committed by Lillem4n
parent 976bcc2a2c
commit 843f5a0fc5
-1
View File
@@ -202,7 +202,6 @@ function isNodeArray(value: readonly unknown[]): value is AdfNode[] {
return unreadableNode(value) === undefined 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 { function unreadableNode(content: readonly unknown[]): { fault: ConvertFault; path: ConvertErrorPath } | undefined {
const refused = firstRefusal(content, unreadableChildren, nodeRefusal) const refused = firstRefusal(content, unreadableChildren, nodeRefusal)
return refused === undefined ? undefined : { fault: { code: 'not-an-adf-document', message: refused.message }, path: refused.path } return refused === undefined ? undefined : { fault: { code: 'not-an-adf-document', message: refused.message }, path: refused.path }