mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Don't assign defaults to array config values
This commit is contained in:
@@ -108,7 +108,10 @@ class Config
|
||||
|
||||
if value?
|
||||
value = _.deepClone(value)
|
||||
_.defaults(value, defaultValue) if typeof defaultValue is 'object'
|
||||
valueIsObject = _.isObject(value) and not _.isArray(value)
|
||||
defaultValueIsObject = _.isObject(defaultValue) and not _.isArray(defaultValue)
|
||||
if valueIsObject and defaultValueIsObject
|
||||
_.defaults(value, defaultValue)
|
||||
else
|
||||
value = _.deepClone(defaultValue)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user