Skip to content

Commit 4dd7112

Browse files
committed
chore: cleanup
1 parent aa029fe commit 4dd7112

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • packages/siop-oid4vp/lib/authorization-response

packages/siop-oid4vp/lib/authorization-response/Payload.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,9 @@ const normalizeToArray = (
4444
if (Array.isArray(value)) {
4545
presentationsArray = value
4646
} else if (isArrayLikeObject(value)) {
47-
// Convert array-like object to array by sorting keys numerically
4847
const sortedKeys = Object.keys(value).sort((a, b) => Number(a) - Number(b))
4948
presentationsArray = sortedKeys.map(key => value[key])
5049
} else {
51-
// Single value, wrap in array
5250
presentationsArray = [value]
5351
}
5452

@@ -58,7 +56,6 @@ const normalizeToArray = (
5856
)
5957
}
6058

61-
// Cast to NonEmptyArray since we verified length > 0
6259
return presentationsArray as NonEmptyArray<DcqlPresentationEntry>
6360
}
6461

0 commit comments

Comments
 (0)