diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2020-03-24 14:38:14 +0300 |
---|---|---|
committer | Pavlo Strokov <pstrokov@gitlab.com> | 2020-03-24 14:38:14 +0300 |
commit | d077e4084a4ca3416efc3da8ecd3033c3b17409c (patch) | |
tree | 027981e944b836ad119832e5f8f34b2505b16874 /internal/cache | |
parent | e8458d46dbfbd620627142a9e718de8e63b559cf (diff) |
Replace calls to new with address of literal
Diffstat (limited to 'internal/cache')
-rw-r--r-- | internal/cache/export_test.go | 6 |
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 |