MCPcopy Create free account
hub / github.com/HashLoad/boss / cleanEmpty

Function cleanEmpty

utils/librarypath/librarypath.go:92–100  ·  view source on GitHub ↗
(paths []string)

Source from the content-addressed store, hash-verified

90}
91
92func cleanEmpty(paths []string) []string {
93 for index, value := range paths {
94
95 if value == "" {
96 paths = append(paths[:index], paths[index+1:]...)
97 }
98 }
99 return paths
100}
101
102func getNewPathsFromDir(path string, paths []string, fullPath bool, rootPath string) []string {
103 _, e := os.Stat(path)

Callers 1

getNewPathsFromDirFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected