From defa0c470e2e209eeddf905fe61592e4e86a6beb Mon Sep 17 00:00:00 2001 From: Ziqi Zhao Date: Mon, 10 Oct 2022 13:46:28 +0800 Subject: [PATCH] fix for failed test-race Signed-off-by: Ziqi Zhao --- attribute/value.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/attribute/value.go b/attribute/value.go index d7967512791..80a37bd6ff3 100644 --- a/attribute/value.go +++ b/attribute/value.go @@ -210,19 +210,19 @@ func (v Value) AsInterface() interface{} { func (v Value) Emit() string { switch v.Type() { case BOOLSLICE: - return fmt.Sprint(*(v.slice.(*[]bool))) + return fmt.Sprint(v.AsBoolSlice()) case BOOL: return strconv.FormatBool(v.AsBool()) case INT64SLICE: - return fmt.Sprint(*(v.slice.(*[]int64))) + return fmt.Sprint(v.AsInt64Slice()) case INT64: return strconv.FormatInt(v.AsInt64(), 10) case FLOAT64SLICE: - return fmt.Sprint(*(v.slice.(*[]float64))) + return fmt.Sprint(v.AsFloat64Slice()) case FLOAT64: return fmt.Sprint(v.AsFloat64()) case STRINGSLICE: - return fmt.Sprint(*(v.slice.(*[]string))) + return fmt.Sprint(v.AsStringSlice()) case STRING: return v.stringly default: