Skip to content

Commit

Permalink
fix eslint3
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterReinert authored Jan 11, 2025
1 parent 75de347 commit 37d94b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ export function bufWriteHex(buf: Uint8Array, hex: string, offset = 0): void {
}
}

export function bufReadHex(buf: Uint8Array, start = 0, end?): string {
export function bufReadHex(buf: Uint8Array, start = 0, end?: Number): string {

Check failure on line 488 in lib/utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Don't use `Number` as a type. Use number instead
if (end === undefined) end = buf.length;
let out = '';
for (let i = start; i < end; i++) {
Expand Down

0 comments on commit 37d94b9

Please sign in to comment.