Respond to code review

This commit is contained in:
Sergey Dudoladov
2018-02-20 14:43:02 +01:00
parent b1fae716b1
commit dcfc9925f6
7 changed files with 40 additions and 63 deletions
+7
View File
@@ -119,3 +119,10 @@ func MapContains(haystack, needle map[string]string) bool {
return true
}
func Coalesce(val, defaultVal string) string {
if val == "" {
return defaultVal
}
return val
}