MCPcopy Create free account
hub / github.com/cli/cli / detectEmptyFiles

Function detectEmptyFiles

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

Source from the content-addressed store, hash-verified

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

Callers 2

Test_detectEmptyFilesFunction · 0.85
createRunFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_detectEmptyFilesFunction · 0.68