Skip to content

Commit defa061

Browse files
committed
🩹fix: golangci-lint
1 parent fecef5e commit defa061

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

client/request.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -973,6 +973,8 @@ func SetValWithStruct(p WithStruct, tagName string, v any) {
973973
for i := 0; i < val.Len(); i++ {
974974
setVal(name, val.Index(i))
975975
}
976+
default:
977+
return
976978
}
977979
}
978980

client/request_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,7 +1318,7 @@ func Test_SetValWithStruct(t *testing.T) {
13181318
t.Parallel()
13191319

13201320
// test SetValWithStruct via QueryParam struct.
1321-
type args struct { //nolint:govet // Aligning the struct fields is not necessary.
1321+
type args struct {
13221322
TString string
13231323
TSlice []string
13241324
TIntSlice []int `param:"int_slice"`
@@ -1469,7 +1469,7 @@ func Test_SetValWithStruct(t *testing.T) {
14691469

14701470
func Benchmark_SetValWithStruct(b *testing.B) {
14711471
// test SetValWithStruct via QueryParam struct.
1472-
type args struct { //nolint:govet // Aligning the struct fields is not necessary.
1472+
type args struct {
14731473
TString string
14741474
TSlice []string
14751475
TIntSlice []int `param:"int_slice"`

0 commit comments

Comments
 (0)