Skip to content

Commit da752a1

Browse files
committed
Init opts.
1 parent 0f93c20 commit da752a1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ if (!hyperdb.createReadStream) {
2323
function Graph (storage, key, opts) {
2424
if (!(this instanceof Graph)) return new Graph(storage, key, opts)
2525
events.EventEmitter.call(this)
26+
opts = opts || {}
2627
if (opts.db) {
2728
this.db = opts.db
2829
}

0 commit comments

Comments
 (0)