Skip to content

Commit

Permalink
refactor(transducers-binary): remove obsolete spread ops
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Mar 17, 2024
1 parent 63f511e commit 04e5207
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/transducers-binary/src/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function base64Decode(): Transducer<string, number>;
export function base64Decode(src: string): Uint8Array;
export function base64Decode(src?: string): any {
return src
? new Uint8Array([...iterator1(base64Decode(), src)])
? new Uint8Array(iterator1(base64Decode(), src))
: (rfn: Reducer<any, number>) => {
const r = rfn[2];
let bc = 0,
Expand Down
2 changes: 1 addition & 1 deletion packages/transducers-binary/src/utf8.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export function utf8Encode(): Transducer<string, number>;
export function utf8Encode(src: string): Uint8Array;
export function utf8Encode(src?: string): any {
return src != null
? new Uint8Array([...iterator(utf8Encode(), src)])
? new Uint8Array(iterator(utf8Encode(), src))
: (rfn: Reducer<any, number>) => {
const r = rfn[2];
return compR(rfn, (acc, x: string) => {
Expand Down

0 comments on commit 04e5207

Please sign in to comment.