merge groupcount translations check into an else-if

This commit is contained in:
Nia Weiss 2020-08-28 14:22:35 -04:00
parent 0a9699490b
commit 8549b74421
No known key found for this signature in database
GPG key ID: 895E83409BFDA1BB

View file

@ -5204,8 +5204,7 @@ func (e *executor) translateResult(ctx context.Context, index string, idx *Index
for i, g := range gl.Group {
if ft, ok := fieldTranslations[g.Field]; ok {
g.RowKey = ft[g.RowID]
}
if ft, ok := foreignTranslations[g.Field]; ok && g.Value != nil {
} else if ft, ok := foreignTranslations[g.Field]; ok && g.Value != nil {
g.RowKey = ft[uint64(*g.Value)]
g.Value = nil
}