X Tutup
Skip to content

Commit d60419b

Browse files
authored
req is no longer needed
1 parent 1b50852 commit d60419b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

pkg/cmd/codespace/ports_test.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package codespace
22

33
import (
44
"context"
5-
"encoding/json"
65
"errors"
76
"fmt"
87
"testing"
@@ -149,11 +148,6 @@ func runUpdateVisibilityTest(t *testing.T, portVisibilities []portVisibility, ev
149148

150149
ch := make(chan *jsonrpc2.Conn, 1)
151150
updateSharedVisibility := func(conn *jsonrpc2.Conn, rpcReq *jsonrpc2.Request) (interface{}, error) {
152-
var req []interface{}
153-
if err := json.Unmarshal(*rpcReq.Params, &req); err != nil {
154-
return nil, fmt.Errorf("unmarshal req: %w", err)
155-
}
156-
157151
ch <- conn
158152
return nil, nil
159153
}

0 commit comments

Comments
 (0)
X Tutup