walletdb: minor.

This commit is contained in:
Christopher Jeffrey 2016-11-25 19:37:04 -08:00
parent c0fd199f2d
commit eef9bcd872
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1227,10 +1227,9 @@ WalletDB.prototype.getPath = co(function* getPath(wid, hash) {
* @returns {Promise}
*/
WalletDB.prototype.hasPath = co(function* hasPath(wid, hash) {
var data = yield this.db.get(layout.P(wid, hash));
return data != null;
});
WalletDB.prototype.hasPath = function hasPath(wid, hash) {
return this.db.has(layout.P(wid, hash));
};
/**
* Get all address hashes.