Skip to content

Commit d619a5e

Browse files
committed
update golangci-lint
1 parent 4bf1c08 commit d619a5e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/go.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ jobs:
7070
go-version: stable
7171
cache: true
7272

73+
- name: Clean golangci-lint cache
74+
- run: golangci-lint cache clean
75+
7376
- name: golangci-lint
7477
uses: golangci/golangci-lint-action@v8
7578
with:
76-
version: latest
79+
version: v2.6.0
80+
skip-cache: true

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ linters:
2121
- copyloopvar
2222
- tparallel
2323
- gochecknoglobals
24+
- nolintlint
25+
- modernize
2426
settings:
2527
govet:
2628
enable:

internal/value/value_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func TestCloneVal_TypedNil(t *testing.T) {
330330

331331
t.Run("interface_with_typed_nil", func(t *testing.T) {
332332
t.Parallel()
333-
var i interface{} = (*int)(nil)
333+
var i any = (*int)(nil)
334334
cloned := CloneVal(i)
335335

336336
if cloned != i {
@@ -434,7 +434,7 @@ func TestCopyVal_TypedNil(t *testing.T) {
434434

435435
t.Run("interface_with_typed_nil", func(t *testing.T) {
436436
t.Parallel()
437-
var i interface{} = (*int)(nil)
437+
var i any = (*int)(nil)
438438
copied := CopyVal(i)
439439

440440
// CopyVal is a value copy, so interface contents are copied

0 commit comments

Comments
 (0)