code: func checkPreApply(check *structs.HealthCheck) {
  	if check.CheckID == "" && check.Name != "" {
  		check.CheckID = types.CheckID(check.Name)
  	}
  }
docs: // checkPreApply does the verification of a check before it is applied to Raft.