diff --git a/internal/registry/inmemory/inmemory_test.go b/internal/registry/inmemory/inmemory_test.go index 16c3f8093..e42581523 100644 --- a/internal/registry/inmemory/inmemory_test.go +++ b/internal/registry/inmemory/inmemory_test.go @@ -215,7 +215,7 @@ func (l serviceList) Less(i, j int) bool { return l[i].Kind < l[j].Kind } -func (l serviceList) Swap(i, j int) { t := l[i]; l[i] = l[j]; l[j] = t } +func (l serviceList) Swap(i, j int) { l[i], l[j] = l[j], l[i] } func assertEqual(t *testing.T, want, got []*pb.Service) { t.Helper()