Skip to content

Commit 3b1ad6c

Browse files
committed
chore: make lint happy
1 parent 02e9f18 commit 3b1ad6c

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ linters:
2121
#- depguard
2222
- dogsled
2323
- errcheck
24-
- exportloopref
24+
#- exportloopref
2525
- exhaustive
2626
#- funlen
2727
#- goconst

driver/funcall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (f *FCClient) Listen(handler func([]byte, zero.APICaller)) {
9898

9999
// CallAPI 发送请求
100100
//
101-
//nolint:stylecheck,revive
101+
//nolint:revive
102102
func (f *FCClient) CallAPI(req zero.APIRequest) (zero.APIResponse, error) {
103103
req.Echo = f.nextSeq()
104104
rsp, err := f.handleRequest(&req)

img/pool/sender.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Package pool only for backports
12
package pool
23

34
import (

vevent/vcall.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewAPICallerReturnHook(ctx *zero.Ctx, callback func(rsp zero.APIResponse, e
2323

2424
// CallAPI call original caller and pass rsp to callback
2525
//
26-
//nolint:stylecheck,revive
26+
//nolint:revive
2727
func (v *APICallerReturnHook) CallAPI(request zero.APIRequest) (rsp zero.APIResponse, err error) {
2828
rsp, err = v.caller.CallAPI(request)
2929
go v.callback(rsp, err)

0 commit comments

Comments
 (0)