[Pkg-javascript-commits] [node-asn1.js] 153/202: node: remove unused code

Bastien Roucariès rouca at moszumanska.debian.org
Thu Apr 20 19:19:03 UTC 2017


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

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

commit 31e3538ff09f548bc0125d534d8647a43057adb7
Author: Fedor Indutny <fedor at indutny.com>
Date:   Wed Mar 9 22:29:58 2016 +0300

    node: remove unused code
    
    Fix: #63
---
 lib/asn1/base/node.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/lib/asn1/base/node.js b/lib/asn1/base/node.js
index 62dcaa4..0c196e8 100644
--- a/lib/asn1/base/node.js
+++ b/lib/asn1/base/node.js
@@ -358,13 +358,11 @@ Node.prototype._decode = function decode(input) {
 
     // Decode children
     if (!state.any && state.choice === null && state.children !== null) {
-      var fail = state.children.some(function decodeChildren(child) {
+      state.children.forEach(function decodeChildren(child) {
         // NOTE: We are ignoring errors here, to let parser continue with other
         // parts of encoded data
         child._decode(input);
       });
-      if (fail)
-        return err;
     }
 
     // Decode contained/encoded by schema, only in bit or octet strings

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



More information about the Pkg-javascript-commits mailing list