Skip to content

Commit

Permalink
Add comment to option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewosh committed Nov 16, 2023
1 parent 9477b3e commit bfdc6e4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,11 @@ class Hyperbee extends ReadyResource {
this.lock = opts.lock || mutexify()
this.sep = opts.sep || SEP
this.readonly = !!opts.readonly
this.alwaysDuplicate = opts.alwaysDuplicate !== false
this.prefix = opts.prefix || null

// In a future version, this should be false by default
this.alwaysDuplicate = opts.alwaysDuplicate !== false

this._unprefixedKeyEncoding = this.keyEncoding
this._sub = !!this.prefix
this._checkout = opts.checkout || 0
Expand Down

0 comments on commit bfdc6e4

Please sign in to comment.