Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2020-03-24 14:38:14 +0300
committerPavlo Strokov <pstrokov@gitlab.com>2020-03-24 14:38:14 +0300
commitd077e4084a4ca3416efc3da8ecd3033c3b17409c (patch)
tree027981e944b836ad119832e5f8f34b2505b16874 /internal/cache
parente8458d46dbfbd620627142a9e718de8e63b559cf (diff)
Replace calls to new with address of literal
Diffstat (limited to 'internal/cache')
-rw-r--r--internal/cache/export_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/cache/export_test.go b/internal/cache/export_test.go
index 2f1538e45..f1203b71c 100644
--- a/internal/cache/export_test.go
+++ b/internal/cache/export_test.go
@@ -3,9 +3,9 @@ package cache
import "sync"
var (
- ExportMockRemovalCounter = new(mockCounter)
- ExportMockCheckCounter = new(mockCounter)
- ExportMockLoserBytes = new(mockCounter)
+ ExportMockRemovalCounter = &mockCounter{}
+ ExportMockCheckCounter = &mockCounter{}
+ ExportMockLoserBytes = &mockCounter{}
ExportDisableMoveAndClear = &disableMoveAndClear
ExportDisableWalker = &disableWalker