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

This commit is contained in:
Jose Diaz-Gonzalez committed 2019-12-19 02:29:22 -05:00
1 parent ca5946636f
commit d2ecd76646
1 file changed
+1
+1
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 // PropertyGetDefault returns the value for a given property with a specified default value
func PropertyGetDefault(pluginName, appName, property, defaultValue string) (val string) { func PropertyGetDefault(pluginName, appName, property, defaultValue string) (val string) {
if !PropertyExists(pluginName, appName, property) { if !PropertyExists(pluginName, appName, property) {
val = defaultValue
return return
} }