walletdb: minor.
This commit is contained in:
parent
c0fd199f2d
commit
eef9bcd872
@ -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.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user