fix: Apply default config options when they're falsy

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-10-18 14:51:59 +01:00
parent 5569e2bc84
commit 2a94a7b730
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -119,7 +119,7 @@ class Config extends EventEmitter {
})
.then((value) => {
const schemaEntry = this.schema[key];
if (value == null && schemaEntry != null && schemaEntry.default) {
if (value == null && schemaEntry != null && schemaEntry.default != null) {
return schemaEntry.default;
}
return value;