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

Commit 98390c2

Browse files
author
Pedro Santos
committed
fix: bootstrap rm return value when all option is set
1 parent 0671a5e commit 98390c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/components/bootstrap.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,17 @@ module.exports = function bootstrap (self) {
4545
throw invalidMultiaddrError(multiaddr)
4646
}
4747

48+
let res = []
4849
const config = await self._repo.config.get()
4950
if (args.all) {
51+
res = config.Bootstrap
5052
config.Bootstrap = []
5153
} else {
5254
config.Bootstrap = config.Bootstrap.filter((mh) => mh !== multiaddr)
5355
}
5456

5557
await self._repo.config.set(config)
5658

57-
const res = []
5859
if (!args.all && multiaddr) {
5960
res.push(multiaddr)
6061
}

0 commit comments

Comments
 (0)