Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 8c512f2

Browse files
authored
Merge pull request #859 from ipfs/fix/issue-858
fix: issue-858
2 parents cbcfbe1 + 481933a commit 8c512f2

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/core/boot.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ module.exports = (self) => {
1515
const repoOpen = !self._repo.closed
1616

1717
const customInitOptions = typeof options.init === 'object' ? options.init : {}
18-
const initOptions = Object.assign({
19-
bits: 2048
20-
}, customInitOptions)
18+
const initOptions = Object.assign({ bits: 2048 }, customInitOptions)
2119

2220
// Checks if a repo exists, and if so opens it
2321
// Will return callback with a bool indicating the existence
@@ -88,6 +86,7 @@ module.exports = (self) => {
8886
(cb) => self.config.get(cb),
8987
(config, cb) => {
9088
extend(config, options.config)
89+
9190
self.config.replace(config, cb)
9291
}
9392
], cb)

src/core/components/init.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ module.exports = function init (self) {
9797

9898
parallel(tasks, (err) => {
9999
if (err) {
100-
return cb(err)
100+
cb(err)
101+
} else {
102+
cb(null, true)
101103
}
102-
103-
cb(null, true)
104104
})
105105
}
106106
], done)

src/init-files/default-config-browser.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"Enabled": true
1616
}
1717
},
18-
"Discovery": {},
1918
"Bootstrap": [
2019
"/dns4/ams-1.bootstrap.libp2p.io/tcp/443/wss/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd",
2120
"/dns4/sfo-1.bootstrap.libp2p.io/tcp/443/wss/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx",

0 commit comments

Comments
 (0)