The boolean expression can be simplified CRT-D0018
Bug risk
Major
3 months ago3 months old
can simplify len(matches) >= i+1 to len(matches) > i
74			// need to both contain `register.go` and `keep alive failed`
75			pattern := regexp.MustCompile(`register.go.*keep alive failed`)
76			matches := pattern.FindAll(content, -1)
77			return len(matches) >= i+178		})
79		etcd.Close()
80		etcd, err = embed.StartEtcd(&cfg)