From fe6896ba98d25638a4464fe3ac12333d5cfcba3e Mon Sep 17 00:00:00 2001 From: Chris Kleeschulte Date: Wed, 17 May 2017 14:46:42 -0400 Subject: [PATCH] Minor cleanup. --- lib/services/db/index.js | 10 +++++----- lib/services/transaction/index.js | 2 -- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/services/db/index.js b/lib/services/db/index.js index 454aef11..4d481abb 100644 --- a/lib/services/db/index.js +++ b/lib/services/db/index.js @@ -187,7 +187,7 @@ DB.prototype.get = function(key, options, callback) { if (typeof callback !== 'function') { cb = options; opts = {}; - } + } if (!this._stopping) { this._store.get(key, opts, cb); } else { @@ -201,7 +201,7 @@ DB.prototype.put = function(key, value, options, callback) { if (typeof callback !== 'function') { cb = options; opts = {}; - } + } if (!this._stopping) { this._store.put(key, value, opts, cb); } else { @@ -215,7 +215,7 @@ DB.prototype.batch = function(ops, options, callback) { if (typeof callback !== 'function') { cb = options; opts = {}; - } + } if (!this._stopping) { this._store.batch(ops, opts, cb); } else { @@ -226,7 +226,7 @@ DB.prototype.batch = function(ops, options, callback) { DB.prototype.createReadStream = function(op) { var stream; if (!this._stopping) { - stream = this._store.createReadStream(op) + stream = this._store.createReadStream(op); } return stream; }; @@ -234,7 +234,7 @@ DB.prototype.createReadStream = function(op) { DB.prototype.createKeyStream = function(op) { var stream; if (!this._stopping) { - stream = this._store.createKeyStream(op) + stream = this._store.createKeyStream(op); } return stream; }; diff --git a/lib/services/transaction/index.js b/lib/services/transaction/index.js index 4ba3da9c..fff4afac 100644 --- a/lib/services/transaction/index.js +++ b/lib/services/transaction/index.js @@ -6,8 +6,6 @@ var BaseService = require('../../service'); var inherits = require('util').inherits; var Encoding = require('./encoding'); var levelup = require('levelup'); -var index = require('../../../'); -var log = index.log; /** * The Transaction Service builds upon the Database Service and the Bitcoin Service to add additional