From 86ddd68263ebdec86d36f66340b6b99d3f29bac0 Mon Sep 17 00:00:00 2001 From: William Swanson Date: Fri, 9 Jun 2017 10:53:01 -0700 Subject: [PATCH] Reduce the size to 787 bytes --- src/codec.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/codec.js b/src/codec.js index 87aa1bd..3bf21c3 100644 --- a/src/codec.js +++ b/src/codec.js @@ -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