internal: inline CondVal function

Change-Id: Ic1115ab639e2d7b499c3400b5310575a36b1b796
Reviewed-on: https://go-review.googlesource.com/85320
Reviewed-by: Tim Cooper <tim.cooper@layeh.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Ross Light
2017-12-21 14:01:18 -08:00
parent 174986b227
commit 90155042cb
3 changed files with 27 additions and 19 deletions

View File

@@ -35,10 +35,3 @@ func ParseKey(key []byte) (*rsa.PrivateKey, error) {
}
return parsed, nil
}
func CondVal(v string) []string {
if v == "" {
return nil
}
return []string{v}
}