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

Function detectEmptyFiles

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

Source from the content-addressed store, hash-verified

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

Callers 2

Test_detectEmptyFilesFunction · 0.85
createRunFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_detectEmptyFilesFunction · 0.68