Skip to content

Commit 143e533

Browse files
committed
fix lint
1 parent 67eba23 commit 143e533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/codec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const decodeString: (string: string | Uint8Array) => string = string => {
2525
}
2626

2727
const encodeFlex: (buffer: Uint8Array) => number[] = buffer => {
28-
return Array.from(buffer)
28+
return [...buffer]
2929
}
3030

3131
const decodeFlex: (flex: number[]) => Uint8Array = flex => {

0 commit comments

Comments
 (0)