From 8549b74421405cfb13bd49e55ddd2d448a83f134 Mon Sep 17 00:00:00 2001 From: Nia Weiss Date: Fri, 28 Aug 2020 14:22:35 -0400 Subject: [PATCH] merge groupcount translations check into an else-if --- executor.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/executor.go b/executor.go index 9e51e6a3a..16c9dec39 100644 --- a/executor.go +++ b/executor.go @@ -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 }