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