aboutsummaryrefslogtreecommitdiffstats
path: root/dex/cache_test.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-29 10:20:00 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 21:32:54 +0800
commitd09c4f37a430b03e42d0ae3324907f040adc1449 (patch)
tree05f27af84647a2d3296a8d4fec578c11c5a1f87a /dex/cache_test.go
parent25a0e3a6b67cf646611153599e5b9cde2f2e8435 (diff)
downloaddexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.gz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.bz2
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.lz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.xz
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.tar.zst
dexon-d09c4f37a430b03e42d0ae3324907f040adc1449.zip
Fix lint
Diffstat (limited to 'dex/cache_test.go')
-rw-r--r--dex/cache_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/dex/cache_test.go b/dex/cache_test.go
index 3c04db673..ac5609c1a 100644
--- a/dex/cache_test.go
+++ b/dex/cache_test.go
@@ -145,9 +145,9 @@ func TestCacheBlock(t *testing.T) {
hashes := coreCommon.Hashes{block1.Hash, block2.Hash, block3.Hash, block4.Hash}
hashMap := map[coreCommon.Hash]struct{}{
- block1.Hash: struct{}{},
- block2.Hash: struct{}{},
- block3.Hash: struct{}{},
+ block1.Hash: {},
+ block2.Hash: {},
+ block3.Hash: {},
}
blocks := cache.blocks(hashes)
if len(blocks) != 3 {