fix: handle case where defaultValue was not properly returned by get-with-default

This commit is contained in:
Jose Diaz-Gonzalez
2019-12-19 02:18:01 -05:00
parent ca5946636f
commit d2ecd76646

View File

@@ -100,6 +100,7 @@ func PropertyGetAll(pluginName string, appName string) (map[string]string, error
// PropertyGetDefault returns the value for a given property with a specified default value
func PropertyGetDefault(pluginName, appName, property, defaultValue string) (val string) {
if !PropertyExists(pluginName, appName, property) {
val = defaultValue
return
}