Преглед изворни кода

1d array

Signed-off-by: Alex Meijer <ameijer@kubecost.com>
Alex Meijer пре 2 година
родитељ
комит
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
 }