Fix spacing formatting issues

This commit is contained in:
Braydon Fuller 2014-12-12 11:23:12 -05:00
parent 32ac9bb63e
commit 7aaee6466f
1 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ URI.isValid = function(arg, knownParams) {
try { try {
var uri = new URI(arg, knownParams); var uri = new URI(arg, knownParams);
return true; return true;
} catch(err) { } catch (err) {
return false; return false;
} }
}; };
@ -165,9 +165,9 @@ URI.prototype._parseAmount = function(amount) {
URI.prototype.toJSON = function() { URI.prototype.toJSON = function() {
var json = {}; var json = {};
for(var i=0;i<URI.Members.length;i++){ for (var i = 0; i < URI.Members.length; i++) {
var m = URI.Members[i]; var m = URI.Members[i];
if (this.hasOwnProperty(m) && typeof(this[m]) !== 'undefined'){ if (this.hasOwnProperty(m) && typeof(this[m]) !== 'undefined') {
if (typeof(this[m].toString) === 'function') { if (typeof(this[m].toString) === 'function') {
json[m] = this[m].toString(); json[m] = this[m].toString();
} else { } else {
@ -213,7 +213,7 @@ URI.prototype.toString = function() {
* @returns {String} Bitcoin URI * @returns {String} Bitcoin URI
*/ */
URI.prototype.inspect = function() { URI.prototype.inspect = function() {
return '<URI: ' + this.toString()+ '>'; return '<URI: ' + this.toString() + '>';
}; };
module.exports = URI; module.exports = URI;