Skip to content

Commit

Permalink
Reduce the size to 787 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
swansontec committed Jun 9, 2017
1 parent da54552 commit 86ddd68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/codec.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,7 @@ export function parse (string, encoding, opts = {}) {
}

// Allocate the output:
const out = new (opts.out != null ? opts.out : Uint8Array)(
(end * encoding.bits / 8) | 0
)
const out = new (opts.out || Uint8Array)((end * encoding.bits / 8) | 0)

// Parse the data:
let bits = 0 // Number of bits currently in the buffer
Expand Down

0 comments on commit 86ddd68

Please sign in to comment.