Skip to content

Commit

Permalink
Change SubDown#type value to subleveldown
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphtheninja committed May 31, 2018
1 parent 68756c3 commit c2e2596
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions leveldown.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ var SubDown = function (db, prefix, opts) {

inherits(SubDown, abstract.AbstractLevelDOWN)

SubDown.prototype.type = 'subdown'
SubDown.prototype.type = 'subleveldown'

SubDown.prototype._open = function (opts, cb) {
var self = this

if (this.db.isOpen()) {
if (this.db.db.type === 'subdown' && this.db.db.prefix) {
if (this.db.db.type === 'subleveldown' && this.db.db.prefix) {
this.prefix = this.db.db.prefix + this.prefix
this.leveldown = this.db.db.leveldown
} else {
Expand Down

0 comments on commit c2e2596

Please sign in to comment.