[Pkg-javascript-commits] [ltx] 430/469: fix lint issues
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:35 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 c02aae8520a53fc566821f59d4d8bccf0b5fbfcc
Author: Sonny Piers <sonny at fastmail.net>
Date: Fri Feb 26 13:49:29 2016 +0100
fix lint issues
---
lib/equal.js | 3 ++-
test/parse-test.js | 6 +++---
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/lib/equal.js b/lib/equal.js
index 4ec4b9d..386cc44 100644
--- a/lib/equal.js
+++ b/lib/equal.js
@@ -14,8 +14,9 @@ function attrsEqual (a, b) {
var value = attrs[key]
if (value == null || b.attrs[key] == null) { // === null || undefined
if (value !== b.attrs[key]) return false
+ } else if (value.toString() !== b.attrs[key].toString()) {
+ return false
}
- else if (value.toString() !== b.attrs[key].toString()) return false
}
return true
}
diff --git a/test/parse-test.js b/test/parse-test.js
index a0a7c98..51fa16a 100644
--- a/test/parse-test.js
+++ b/test/parse-test.js
@@ -163,8 +163,8 @@ parsers.forEach(function (Parser) {
function testStanza (data, stanza) {
assert.equal(data.start, stanza.name)
- assert.equal(Object.keys(data.attrs).length,
- Object.keys(stanza.attrs).length)
- for (var k in stanza.attrs)
+ assert.equal(Object.keys(data.attrs).length, Object.keys(stanza.attrs).length)
+ for (var k in stanza.attrs) {
assert.equal(data.attrs[k], stanza.attrs[k])
+ }
}
--
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