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:
@@ -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 }
|
||||||
|
|||||||
Reference in New Issue
Block a user