diff --git a/src/config.coffee b/src/config.coffee index bda7f2014..0238bb792 100644 --- a/src/config.coffee +++ b/src/config.coffee @@ -441,14 +441,11 @@ class Config # file in the type specified by the configuration schema. get: (scopeDescriptor, keyPath) -> if arguments.length == 1 - keyPath = scopeDescriptor - scopeDescriptor = undefined - - if scopeDescriptor? + @getRawValue(scopeDescriptor) + else value = @getRawScopedValue(scopeDescriptor, keyPath) - return value if value? - - @getRawValue(keyPath) + value ?= @getRawValue(keyPath) + value # Essential: Sets the value for a configuration setting. #