Skip to content

Commit bd6ad88

Browse files
authored
chore: nolint always return error function (coder#12701)
1 parent b4492ff commit bd6ad88

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

enterprise/tailnet/workspaceproxy.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ func (s *ClientService) ServeMultiAgentClient(ctx context.Context, version strin
6767

6868
func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
6969
go func() {
70+
//nolint:staticcheck
7071
err := forwardNodesToWorkspaceProxy(ctx, conn, ma)
7172
//nolint:staticcheck
7273
if err != nil {
@@ -112,6 +113,10 @@ func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentC
112113
}
113114
}
114115

116+
// Linter fails because this function always returns an error. This function blocks
117+
// until it errors, so this is ok.
118+
//
119+
//nolint:staticcheck
115120
func forwardNodesToWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error {
116121
var lastData []byte
117122
for {

0 commit comments

Comments
 (0)