MCPcopy Create free account
hub / github.com/belak/gitdir / listContainsStr

Function listContainsStr

utils.go:49–57  ·  view source on GitHub ↗
(list []string, target string)

Source from the content-addressed store, hash-verified

47}
48
49func listContainsStr(list []string, target string) bool {
50 for _, val := range list {
51 if val == target {
52 return true
53 }
54 }
55
56 return false
57}
58
59func handlePanic(logger *zerolog.Logger) {
60 if r := recover(); r != nil {

Callers 2

doesGroupContainUserMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected