fix golint issues (#458)

This commit is contained in:
Kevin Wan
2021-02-09 14:03:19 +08:00
committed by GitHub
parent 5e969cbef0
commit 03b5fd4a10
5 changed files with 44 additions and 41 deletions

View File

@@ -30,9 +30,9 @@ func (h httpCarrier) Set(key, val string) {
func (g grpcCarrier) Get(key string) string {
if vals, ok := g[strings.ToLower(key)]; ok && len(vals) > 0 {
return vals[0]
} else {
return ""
}
return ""
}
func (g grpcCarrier) Set(key, val string) {