MCPcopy
hub / github.com/cli/cli / detectEmptyFiles

Function detectEmptyFiles

pkg/cmd/gist/create/create.go:302–309  ·  view source on GitHub ↗
(files map[string]*shared.GistFile)

Source from the content-addressed store, hash-verified

300}
301
302func detectEmptyFiles(files map[string]*shared.GistFile) bool {
303 for _, file := range files {
304 if strings.TrimSpace(file.Content) == "" {
305 return true
306 }
307 }
308 return false
309}

Callers 2

Test_detectEmptyFilesFunction · 0.85
createRunFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_detectEmptyFilesFunction · 0.68