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

Function detectEmptyFiles

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

Source from the content-addressed store, hash-verified

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

Callers 2

Test_detectEmptyFilesFunction · 0.85
createRunFunction · 0.85

Calls

no outgoing calls

Tested by 1

Test_detectEmptyFilesFunction · 0.68