Просмотр исходного кода

1d array

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer 2 лет назад
Родитель
Сommit
39a0fa7ee2
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      core/pkg/model/custom_cost_response.go

+ 2 - 2
core/pkg/model/custom_cost_response.go

@@ -9,7 +9,7 @@ type CustomCostResponse struct {
 	Version    string
 	Currency   string
 	Window     opencost.Window
-	Costs      [][]*CustomCost
+	Costs      []*CustomCost
 	Errors     []error
 }
 
@@ -232,7 +232,7 @@ func (d *CustomCostResponse) GetWindow() opencost.Window {
 	return d.Window
 }
 
-func (d *CustomCostResponse) GetCosts() [][]*CustomCost {
+func (d *CustomCostResponse) GetCosts() []*CustomCost {
 	return d.Costs
 }