We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a62dad commit aac24dbCopy full SHA for aac24db
1 file changed
contrib/nodejs-bwt-daemon/index.js
@@ -54,6 +54,11 @@ function init(options) {
54
delete options.http
55
}
56
57
+ // Delete nully options so that they get their default value
58
+ Object.entries(options)
59
+ .filter(([ _, val ]) => val == null)
60
+ .forEach(([ key, _ ]) => delete options[key])
61
+
62
if (!options.electrum_addr && !options.http_addr) {
63
throw new Error('None of the bwt services are enabled')
64
0 commit comments