Minor cleanup.

This commit is contained in:
Chris Kleeschulte 2017-05-17 14:46:42 -04:00
parent bb73bac027
commit fe6896ba98
2 changed files with 5 additions and 7 deletions

View File

@ -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;
};

View File

@ -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