mirror of
https://github.com/github/codeql.git
synced 2025-12-21 03:06:31 +01:00
15 lines
275 B
Go
15 lines
275 B
Go
package main
|
|
|
|
import "strings"
|
|
|
|
func containsGood(searchName string, names string) bool {
|
|
values := strings.Split(names, ",")
|
|
// GOOD: Avoid using indexes, use range loop instead
|
|
for _, name := range values {
|
|
if name == searchName {
|
|
return true
|
|
}
|
|
}
|
|
return true
|
|
}
|