[Pkg-javascript-commits] [ltx] 396/469: remove defensive Parser check

Jonas Smedegaard dr at jones.dk
Wed Aug 31 13:03:31 UTC 2016


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

js pushed a commit to branch master
in repository ltx.

commit 6ca7a2ec16e582bb88ada59ad6ed291b6d25273b
Author: Sonny Piers <sonny at fastmail.net>
Date:   Thu Sep 10 11:58:47 2015 +0200

    remove defensive Parser check
---
 lib/Parser.js | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/lib/Parser.js b/lib/Parser.js
index 50029f9..a57a388 100644
--- a/lib/Parser.js
+++ b/lib/Parser.js
@@ -11,9 +11,6 @@ var Parser = function(options) {
     var ParserInterface = this.Parser = (options && options.Parser) || LtxParser
     var ElementInterface = this.Element = (options && options.Element) || Element
 
-    if (!ParserInterface) {
-        throw new Error('No SAX parser available')
-    }
     this.parser = new ParserInterface()
 
     var el

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



More information about the Pkg-javascript-commits mailing list