diff --git a/lib/config.js b/lib/config.js index 0c9b5a6..901b81f 100644 --- a/lib/config.js +++ b/lib/config.js @@ -10,11 +10,10 @@ export const loadConfig = async (configPath) => { ) } - if (typeof config.checksumPrefix === 'undefined') { - config.checksumPrefix = 'benthos' + return { + ...config, + checksumPrefix: config.checksumPrefix ?? 'benthos' } - - return config } export const loadJson = async (name) => {