summaryrefslogtreecommitdiff
path: root/vendor/0xacab.org/leap/go-dialog/util.go
blob: 28126ee266314b1f409f60437f882a7c10a17f17 (plain)
1
2
3
4
5
6
7
8
9
10
package dialog

func firstOf(args ...string) string {
	for _, arg := range args {
		if arg != "" {
			return arg
		}
	}
	return ""
}