[Pkg-javascript-commits] [node-sha.js] 53/237: use my toHex

Bastien Roucariès rouca at moszumanska.debian.org
Fri May 5 09:02:54 UTC 2017


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

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

commit 76ffe66ba119e9e8fc88d6a5b5dcd5ffabf2a9da
Author: Dominic Tarr <dominic.tarr at gmail.com>
Date:   Fri Dec 27 21:08:44 2013 +0700

    use my toHex
---
 util.js | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util.js b/util.js
index 842fd0a..6499276 100644
--- a/util.js
+++ b/util.js
@@ -62,5 +62,7 @@ function zeroFill(buf, from) {
 
 function toString(buf, enc) {
   if(null == enc) return buf
+  if('hex' == enc)
+    return toHex(buf)
   return bopsToString(buf, enc)
 }

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



More information about the Pkg-javascript-commits mailing list