mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 15:10:59 +00:00
CI/build: Update Go version, linters and fix minor issues (#1612)
* CI/build: Update Go version, linters and fix minor issues * linters: Add intrange, copyloopvar, additional go vet linters to match gopls and fix issues
This commit is contained in:
2
common/cache/cache_test.go
vendored
2
common/cache/cache_test.go
vendored
@@ -46,7 +46,7 @@ func TestContainsOrAdd(t *testing.T) {
|
||||
|
||||
func TestClear(t *testing.T) {
|
||||
lruCache := New(5)
|
||||
for x := 0; x < 5; x++ {
|
||||
for x := range 5 {
|
||||
lruCache.Add(x, x)
|
||||
}
|
||||
if lruCache.Len() != 5 {
|
||||
|
||||
Reference in New Issue
Block a user