We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f93c20 commit da752a1Copy full SHA for da752a1
1 file changed
index.js
@@ -23,6 +23,7 @@ if (!hyperdb.createReadStream) {
23
function Graph (storage, key, opts) {
24
if (!(this instanceof Graph)) return new Graph(storage, key, opts)
25
events.EventEmitter.call(this)
26
+ opts = opts || {}
27
if (opts.db) {
28
this.db = opts.db
29
}
0 commit comments