remove useless judgment

pull/1269/head
王真 3 years ago
parent b04e214ec8
commit 4f15df4caf
  1. 2
      metadata/metadata.go

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

Loading…
Cancel
Save