Skip to content

Commit 09d3e35

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

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,4 @@ jobs:
7373
- name: golangci-lint
7474
uses: golangci/golangci-lint-action@v8
7575
with:
76-
version: latest
76+
version: v2.6.0

.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)