jshint compliance
This commit is contained in:
6
rpc.js
6
rpc.js
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user