jshint compliance

pull/1/head
ansuz 8 years ago
parent eeecb1baab
commit 98027dad27

@ -18,9 +18,11 @@ var isValidChannel = function (chan) {
var checkSignature = function (signedMsg, publicKey) {
if (!(signedMsg && publicKey)) { return null; }
var signedBuffer;
var pubBuffer;
try {
var signedBuffer = Nacl.util.decodeBase64(signedMsg);
var pubBuffer = Nacl.util.decodeBase64(publicKey);
signedBuffer = Nacl.util.decodeBase64(signedMsg);
pubBuffer = Nacl.util.decodeBase64(publicKey);
} catch (e) {
return null;
}

@ -1018,7 +1018,7 @@ define([
parsed = common.parseHash(parsed.hash);
if (parsed.version === 0) {
return channel;
return parsed.channel;
} else if (parsed.version !== 1) {
console.error("parsed href had no version");
console.error(parsed);

Loading…
Cancel
Save