Files
asciinema/util/nonblank.go

12 lines
168 B
Go
Raw Permalink Normal View History

2015-03-05 16:30:55 +01:00
package util
func FirstNonBlank(candidates ...string) string {
for _, candidate := range candidates {
if candidate != "" {
return candidate
}
}
return ""
}