1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-03-17 21:07:54 +02:00

remove useless judgment

This commit is contained in:
王真 2021-07-28 13:58:17 +08:00
parent b04e214ec8
commit 4f15df4caf

View File

@ -20,7 +20,7 @@ func New(mds ...map[string]string) Metadata {
continue
}
key := strings.ToLower(k)
if len(v) > 0 && v != "" {
if v != "" {
md[key] = v
}
}