Skip to content

fix golangci-lint issue #2

fix golangci-lint issue

fix golangci-lint issue #2

Triggered via push September 6, 2024 06:19
Status Failure
Total duration 30s
Artifacts

tests.yml

on: push
go-static-checks
21s
go-static-checks
Fit to window
Zoom out
Zoom in

Annotations

5 errors
go-static-checks: changes.go#L667
S1011: should replace loop with `opt.AdditionalFields = append(opt.AdditionalFields, AdditionalFields...)` (gosimple)
go-static-checks: utils.go#L62
S1025: the argument's underlying type is a slice of bytes, should use a simple conversion instead of fmt.Sprintf (gosimple)
go-static-checks: request.go#L179
S1020: when ok is true, v can't be nil (gosimple)
go-static-checks: changes.go#L122
SA5008: unknown JSON option "omitempt" (staticcheck)
go-static-checks
issues found