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

@ -226,7 +226,7 @@ DB.prototype.batch = function(ops, options, callback) {
DB.prototype.createReadStream = function(op) { DB.prototype.createReadStream = function(op) {
var stream; var stream;
if (!this._stopping) { if (!this._stopping) {
stream = this._store.createReadStream(op) stream = this._store.createReadStream(op);
} }
return stream; return stream;
}; };
@ -234,7 +234,7 @@ DB.prototype.createReadStream = function(op) {
DB.prototype.createKeyStream = function(op) { DB.prototype.createKeyStream = function(op) {
var stream; var stream;
if (!this._stopping) { if (!this._stopping) {
stream = this._store.createKeyStream(op) stream = this._store.createKeyStream(op);
} }
return stream; return stream;
}; };

View File

@ -6,8 +6,6 @@ var BaseService = require('../../service');
var inherits = require('util').inherits; var inherits = require('util').inherits;
var Encoding = require('./encoding'); var Encoding = require('./encoding');
var levelup = require('levelup'); 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 * The Transaction Service builds upon the Database Service and the Bitcoin Service to add additional