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:
Adrian Gallagher
2024-08-16 17:41:11 +10:00
committed by GitHub
parent facf291069
commit 225429bda6
111 changed files with 239 additions and 379 deletions

View File

@@ -1575,8 +1575,6 @@ func TestMatchFilter(t *testing.T) {
}
// specific tests
for num, tt := range tests {
num := num
tt := tt
t.Run(strconv.Itoa(num), func(t *testing.T) {
t.Parallel()
if tt.o.MatchFilter(tt.f) != tt.expectedResult {
@@ -1750,8 +1748,6 @@ func TestIsOrderPlaced(t *testing.T) {
}
// specific tests
for num, tt := range statusTests {
num := num
tt := tt
t.Run(fmt.Sprintf("TEST CASE: %d", num), func(t *testing.T) {
t.Parallel()
if tt.o.WasOrderPlaced() != tt.expectedResult {