Skip to content

Commit f06b913

Browse files
committed
jsonrpc2: fix lint errors
1 parent 78607a7 commit f06b913

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

jsonrpc2.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,11 @@ func WithOverloaded(rejectIfOverloaded bool) Options {
109109
type requestState int
110110

111111
const (
112-
requestWaiting = requestState(iota) //nolint:varcheck,deadcode
112+
requestWaiting = requestState(iota)
113113
requestSerial
114114
requestParallel
115115
requestReplied
116-
requestDone //nolint:varcheck,deadcode
116+
requestDone
117117
)
118118

119119
// Request is sent to a server to represent a Call or Notify operaton.

jsonrpc2_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ func (test *callTest) verifyResults(t *testing.T, results interface{}) {
6060
}
6161
}
6262

63-
func prepare(ctx context.Context, t *testing.T) (*jsonrpc2.Conn, *jsonrpc2.Conn) {
63+
func prepare(ctx context.Context, t *testing.T) (a, b *jsonrpc2.Conn) {
6464
aR, bW := io.Pipe()
6565
bR, aW := io.Pipe()
66-
a := run(ctx, t, aR, aW)
67-
b := run(ctx, t, bR, bW)
66+
a = run(ctx, t, aR, aW)
67+
b = run(ctx, t, bR, bW)
6868
return a, b
6969
}
7070

0 commit comments

Comments
 (0)