From eef9bcd872248238dc9d6c68724079e92ca52f82 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 25 Nov 2016 19:37:04 -0800 Subject: [PATCH] walletdb: minor. --- lib/wallet/walletdb.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/wallet/walletdb.js b/lib/wallet/walletdb.js index f967d523..96d4d0ae 100644 --- a/lib/wallet/walletdb.js +++ b/lib/wallet/walletdb.js @@ -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.