mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-17 20:39:25 +02:00
Respond to code review
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user