Skip to content

Commit

Permalink
dont work so hard
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterSquishy committed Aug 8, 2024
1 parent 104ca68 commit 0c41667
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions lightstep/resource_metric_dashboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,20 +648,6 @@ func buildCharts(chartsIn []interface{}) ([]client.UnifiedChart, error) {
c.Subtitle = &subtitleStr
}

if workflowLinks, hasWorkflowLinks := chart["workflow_link"]; hasWorkflowLinks {
if workflowLinkList, ok := workflowLinks.([]map[string]any); ok {
typedWorkflowLinks := make([]client.WorkflowLink, 0, len(workflowLinkList))
for _, workflowLink := range workflowLinkList {
typedWorkflowLinks = append(typedWorkflowLinks, client.WorkflowLink{
URL: workflowLink["url"].(string),
Name: workflowLink["name"].(string),
})
}
c.WorkflowLinks = typedWorkflowLinks
}

}

newCharts = append(newCharts, c)
}
return newCharts, nil
Expand Down

0 comments on commit 0c41667

Please sign in to comment.