MCPcopy
hub / github.com/cortexlabs/cortex / removeEmptyStrs

Function removeEmptyStrs

pkg/lib/errors/error.go:200–208  ·  view source on GitHub ↗
(strs []string)

Source from the content-addressed store, hash-verified

198}
199
200func removeEmptyStrs(strs []string) []string {
201 var cleanStrs []string
202 for _, str := range strs {
203 if str != "" {
204 cleanStrs = append(cleanStrs, str)
205 }
206 }
207 return cleanStrs
208}

Callers 1

WrapFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected