[Pkg-javascript-commits] [node-randomfill] 16/47: fix nits

Bastien Roucariès rouca at moszumanska.debian.org
Fri Dec 15 09:52:52 UTC 2017


This is an automated email from the git hooks/post-receive script.

rouca pushed a commit to branch master
in repository node-randomfill.

commit 5e682f05949bf66acf9359d0c3071fd49a330408
Author: Calvin Metcalf <cmetcalf at appgeo.com>
Date:   Tue Jan 12 10:42:52 2016 -0500

    fix nits
---
 browser.js | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/browser.js b/browser.js
index f7980db..254d480 100644
--- a/browser.js
+++ b/browser.js
@@ -14,10 +14,8 @@ if (crypto && crypto.getRandomValues) {
 
 function randomBytes (size, cb) {
   // phantomjs needs to throw
-  if (size > 65536) {
-    throw new Error('requested too many random bytes')
-  }
-  // in case browserify  isn't use the Uint8Array version
+  if (size > 65536) throw new Error('requested too many random bytes')
+  // in case browserify  isn't using the Uint8Array version
   var rawBytes = new global.Uint8Array(size)
 
   // This will not work in older browsers.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-randomfill.git



More information about the Pkg-javascript-commits mailing list