refactor: lint. misc.

This commit is contained in:
Christopher Jeffrey 2016-09-24 02:41:01 -07:00
parent 5a6099e992
commit 3f1946cd7e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD
3 changed files with 8 additions and 7 deletions

View File

@ -386,7 +386,7 @@ LowlevelUp.prototype.clone = co(function* clone(path) {
break;
batch.put(item.key, item.value);
total += value.length;
total += item.value.length;
if (total >= hwm) {
total = 0;

View File

@ -1364,10 +1364,10 @@ Pool.prototype._handleTX = co(function* _handleTX(tx, peer) {
throw err;
}
// if (missing) {
// for (i = 0; i < missing.length; i++)
// yield this.getData(peer, this.txType, missing[i]);
// }
if (this.options.requestMissing && missing) {
for (i = 0; i < missing.length; i++)
yield this.getData(peer, this.txType, missing[i]);
}
this.emit('tx', tx, peer);
});

View File

@ -14,7 +14,8 @@
"test": "mocha --reporter spec test/*-test.js",
"browserify": "browserify --im -o browser/bcoin.js lib/bcoin.js",
"uglify": "uglifyjs -m -o browser/bcoin.min.js browser/bcoin.js",
"clean": "rm browser/bcoin.js browser/bcoin.min.js"
"clean": "rm browser/bcoin.js browser/bcoin.min.js",
"hint": "jshint lib/ || exit 0"
},
"repository": "git://github.com/bcoin-org/bcoin.git",
"keywords": [
@ -47,12 +48,12 @@
"socket.io-client": "1.4.8"
},
"devDependencies": {
"browserify": "13.1.0",
"babelify": "7.3.0",
"babel-preset-es2015": "6.14.0",
"babel-polyfill": "6.13.0",
"babel-plugin-transform-runtime": "6.12.0",
"babel-plugin-transform-regenerator": "6.14.0",
"browserify": "13.1.0",
"hash.js": "1.0.3",
"jsdoc": "3.4.0",
"level-js": "2.2.4",