This repository was archived by the owner on Feb 12, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -15,9 +15,7 @@ module.exports = (self) => {
15
15
const repoOpen = ! self . _repo . closed
16
16
17
17
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 )
21
19
22
20
// Checks if a repo exists, and if so opens it
23
21
// Will return callback with a bool indicating the existence
@@ -88,6 +86,7 @@ module.exports = (self) => {
88
86
( cb ) => self . config . get ( cb ) ,
89
87
( config , cb ) => {
90
88
extend ( config , options . config )
89
+
91
90
self . config . replace ( config , cb )
92
91
}
93
92
] , cb )
Original file line number Diff line number Diff line change @@ -97,10 +97,10 @@ module.exports = function init (self) {
97
97
98
98
parallel ( tasks , ( err ) => {
99
99
if ( err ) {
100
- return cb ( err )
100
+ cb ( err )
101
+ } else {
102
+ cb ( null , true )
101
103
}
102
-
103
- cb ( null , true )
104
104
} )
105
105
}
106
106
] , done )
Original file line number Diff line number Diff line change 15
15
"Enabled" : true
16
16
}
17
17
},
18
- "Discovery" : {},
19
18
"Bootstrap" : [
20
19
" /dns4/ams-1.bootstrap.libp2p.io/tcp/443/wss/ipfs/QmSoLer265NRgSp2LA3dPaeykiS1J6DifTC88f5uVQKNAd" ,
21
20
" /dns4/sfo-1.bootstrap.libp2p.io/tcp/443/wss/ipfs/QmSoLju6m7xTh3DuokvT3886QRYqxAzb1kShaanJgW36yx" ,
You can’t perform that action at this time.
0 commit comments