Ajay Tripathy 4 лет назад
Родитель
Сommit
74566acc75
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      pkg/kubecost/asset.go

+ 1 - 2
pkg/kubecost/asset.go

@@ -1,7 +1,6 @@
 package kubecost
 
 import (
-	"bytes"
 	"encoding"
 	"fmt"
 	"strings"
@@ -247,7 +246,7 @@ func AssetToExternalAllocation(asset Asset, aggregateBy []string, labelConfig *L
 // Valid values of `aggregateBy` elements are strings which are an `AssetProperty`, and strings prefixed
 // with `"label:"`.
 func key(a Asset, aggregateBy []string) (string, error) {
-	var buffer bytes.Buffer
+	var buffer strings.Builder
 
 	if aggregateBy == nil {
 		aggregateBy = []string{