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:
parent
b04e214ec8
commit
4f15df4caf
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user