MCPcopy Index your code
hub / github.com/cortexproject/cortex / MergeFlags

Function MergeFlags

integration/e2e/util.go:50–60  ·  view source on GitHub ↗
(inputs ...map[string]string)

Source from the content-addressed store, hash-verified

48}
49
50func MergeFlags(inputs ...map[string]string) map[string]string {
51 output := MergeFlagsWithoutRemovingEmpty(inputs...)
52
53 for k, v := range output {
54 if v == "" {
55 delete(output, k)
56 }
57 }
58
59 return output
60}
61
62func MergeFlagsWithoutRemovingEmpty(inputs ...map[string]string) map[string]string {
63 output := map[string]string{}

Calls 1

Tested by 1