OSDN Git Service

modify ci
[bytom/vapor.git] / vendor / github.com / go-kit / kit / metrics / internal / lv / labelvalues.go
diff --git a/vendor/github.com/go-kit/kit/metrics/internal/lv/labelvalues.go b/vendor/github.com/go-kit/kit/metrics/internal/lv/labelvalues.go
deleted file mode 100644 (file)
index 8bb1ba0..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-package lv
-
-// LabelValues is a type alias that provides validation on its With method.
-// Metrics may include it as a member to help them satisfy With semantics and
-// save some code duplication.
-type LabelValues []string
-
-// With validates the input, and returns a new aggregate labelValues.
-func (lvs LabelValues) With(labelValues ...string) LabelValues {
-       if len(labelValues)%2 != 0 {
-               labelValues = append(labelValues, "unknown")
-       }
-       return append(lvs, labelValues...)
-}