Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
chore: remove unused field
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jan 22, 2021
1 parent 027cead commit fe18a81
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class LevelDatastore extends Adapter {
super()
this.path = path
this.opts = opts
this.isCreated = false

if (opts && opts.db) {
this.database = opts.db
delete opts.db
Expand Down Expand Up @@ -68,7 +68,6 @@ class LevelDatastore extends Adapter {
await this.db.open()
} else {
this.db = await this._initDb()
this.isCreated = true
}
} catch (err) {
throw Errors.dbOpenFailedError(err)
Expand Down

0 comments on commit fe18a81

Please sign in to comment.