From bd6ad8807750bbb77230826d41b6f0a33936213a Mon Sep 17 00:00:00 2001 From: Steven Masley Date: Thu, 21 Mar 2024 09:35:10 -0500 Subject: [PATCH] chore: nolint always return error function (#12701) --- enterprise/tailnet/workspaceproxy.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/enterprise/tailnet/workspaceproxy.go b/enterprise/tailnet/workspaceproxy.go index 198f723c2b..22cc0b3e73 100644 --- a/enterprise/tailnet/workspaceproxy.go +++ b/enterprise/tailnet/workspaceproxy.go @@ -67,6 +67,7 @@ func (s *ClientService) ServeMultiAgentClient(ctx context.Context, version strin func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error { go func() { + //nolint:staticcheck err := forwardNodesToWorkspaceProxy(ctx, conn, ma) //nolint:staticcheck if err != nil { @@ -112,6 +113,10 @@ func ServeWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentC } } +// Linter fails because this function always returns an error. This function blocks +// until it errors, so this is ok. +// +//nolint:staticcheck func forwardNodesToWorkspaceProxy(ctx context.Context, conn net.Conn, ma agpl.MultiAgentConn) error { var lastData []byte for {