Skip to content

Commit a0566f0

Browse files
Copilotrotu
andauthored
chore: clean up dynamic length checks
Agent-Logs-Url: https://github.com/rotu/structview/sessions/0716fb80-af23-468f-86bd-27d35fdca170 Co-authored-by: rotu <119948+rotu@users.noreply.github.com>
1 parent 45c3067 commit a0566f0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fields.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export function biguintle(
207207
)
208208
if (
209209
!Number.isInteger(resolvedByteLength) ||
210-
!(0 < resolvedByteLength)
210+
resolvedByteLength <= 0
211211
) {
212212
throw new TypeError("byteLength must resolve to a positive integer")
213213
}
@@ -231,7 +231,7 @@ export function biguintle(
231231
)
232232
if (
233233
!Number.isInteger(resolvedByteLength) ||
234-
!(0 < resolvedByteLength)
234+
resolvedByteLength <= 0
235235
) {
236236
throw new TypeError("byteLength must resolve to a positive integer")
237237
}

0 commit comments

Comments
 (0)