Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 38b19ff

Browse files
committed
Fix typo
1 parent 602be58 commit 38b19ff

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/factory/ipfs-api.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ async function api_factory(ipfs_host, ipfs_port, orbitdb_dir, orbitdb_opts) {
1010
let dbm
1111
let orbitdb_api
1212

13-
if (!orbitdb_opts) orbitdb_opts = {}
14-
if (orbitdb_dir) orbitdb_opts = object.assign({'directory': orbitdb_dir}, orbitdb_opts)
13+
if (orbitdb_dir) orbitdb_opts = Object.assign({'directory': orbitdb_dir}, orbitdb_opts)
1514
ipfs = new IpfsApi(ipfs_host, ipfs_port)
1615
orbitdb = await OrbitDB.createInstance(ipfs, orbitdb_opts)
1716
dbm = new DBManager(orbitdb)

src/factory/ipfs-local.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ async function api_factory(ipfs_opts, orbitdb_dir, orbitdb_opts) {
2121
}
2222
}
2323
}
24-
if (!orbitdb_opts) orbitdb_opts = {}
25-
if (orbitdb_dir) orbitdb_opts = object.assign({'directory': orbitdb_dir}, orbitdb_opts)
24+
if (orbitdb_dir) orbitdb_opts = Object.assign({'directory': orbitdb_dir}, orbitdb_opts)
2625
ipfs_opts = Object.assign(ipfs_defaults, ipfs_opts)
2726
ipfs = await new Promise((resolve, reject) => {
2827
var node = new Ipfs(ipfs_opts)

0 commit comments

Comments
 (0)