Skip to content

Commit

Permalink
fix eslint2
Browse files Browse the repository at this point in the history
  • Loading branch information
DieterReinert authored Jan 11, 2025
1 parent 67d73fc commit 75de347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ export function bufFromHex(hex: string): Uint8Array {
return buf;
}

export function bufWriteHex(buf: Uint8Array, hex: string, offset: number = 0): void {
export function bufWriteHex(buf: Uint8Array, hex: string, offset = 0): void {
const len = hex.length;
let j = offset;

Expand All @@ -485,7 +485,7 @@ export function bufWriteHex(buf: Uint8Array, hex: string, offset: number = 0): v
}
}

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

Check failure on line 488 in lib/utils.ts

View workflow job for this annotation

GitHub Actions / build (16.x)

Parameter 'end' implicitly has an 'any' type.
if (end === undefined) end = buf.length;
let out = '';
for (let i = start; i < end; i++) {
Expand Down

0 comments on commit 75de347

Please sign in to comment.