Minor cleanup.
This commit is contained in:
parent
bb73bac027
commit
fe6896ba98
@ -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;
|
||||
};
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user