append possibly assigns to a wrong variable CRT-D0001
Bug risk
Minor
2 occurrences in this check
append result not assigned to the same slice
910
911// Clone makes a deep copy of the keyspace config.
912func (c *KeyspaceConfig) Clone() *KeyspaceConfig {
913	preAlloc := append(c.PreAlloc[:0:0], c.PreAlloc...)914	cfg := *c
915	cfg.PreAlloc = preAlloc
916	return &cfg
append result not assigned to the same slice
612
613// Clone returns a cloned PD server config.
614func (c *PDServerConfig) Clone() *PDServerConfig {
615	runtimeServices := append(c.RuntimeServices[:0:0], c.RuntimeServices...)616	cfg := *c
617	cfg.RuntimeServices = runtimeServices
618	return &cfg