MCPcopy Create free account
hub / github.com/github/gh-aw / normalizeCacheStepArray

Function normalizeCacheStepArray

pkg/workflow/cache.go:408–416  ·  view source on GitHub ↗
(cacheArray []any)

Source from the content-addressed store, hash-verified

406}
407
408func normalizeCacheStepArray(cacheArray []any) []map[string]any {
409 caches := make([]map[string]any, 0, len(cacheArray))
410 for _, cacheItem := range cacheArray {
411 if cacheMap, ok := cacheItem.(map[string]any); ok {
412 caches = append(caches, cacheMap)
413 }
414 }
415 return caches
416}
417
418func writeCacheStep(builder *strings.Builder, cache map[string]any, idx int, total int) {
419 stepName := resolveCacheStepName(cache, idx, total)

Callers 1

parseCacheStepConfigsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected