Adopt location registry durable contract
This commit is contained in:
@@ -152,7 +152,7 @@ func appendSceneDescriptionLists(values []dnd.SceneDescriptionList) (dnd.SceneDe
|
||||
return combined, nil
|
||||
}
|
||||
|
||||
func appendLocationLists(values []dnd.LocationList) (dnd.LocationList, error) {
|
||||
func appendLocationRegistries(values []dnd.LocationRegistry) (dnd.LocationRegistry, error) {
|
||||
count := 0
|
||||
present := false
|
||||
for _, value := range values {
|
||||
@@ -162,9 +162,9 @@ func appendLocationLists(values []dnd.LocationList) (dnd.LocationList, error) {
|
||||
count += len(value.Locations)
|
||||
}
|
||||
if !present {
|
||||
return dnd.LocationList{}, nil
|
||||
return dnd.LocationRegistry{}, nil
|
||||
}
|
||||
combined := dnd.LocationList{Locations: make([]dnd.Location, 0, count)}
|
||||
combined := dnd.LocationRegistry{Locations: make([]dnd.Location, 0, count)}
|
||||
for _, value := range values {
|
||||
for _, location := range value.Locations {
|
||||
combined.Locations = append(combined.Locations, cloneLocation(location))
|
||||
|
||||
Reference in New Issue
Block a user