Incomplete condition CRT-D0017
Bug risk
Major
8 months ago4 years old
suspicious threads != nil && slice.NoneOf(threads, func(i int) bool { return strings.HasPrefix(name, threads[i]) }); nil check may not be enough, check for len
138	for _, usage := range usages {
139		name := usage.GetKey()
140		value := usage.GetValue()
141		if threads != nil && slice.NoneOf(threads, func(i int) bool {142			return strings.HasPrefix(name, threads[i])
143		}) {
144			continue