chore: nolint always return error function (#12701)

This commit is contained in:
Steven Masley 2024-03-21 09:35:10 -05:00 committed by GitHub
parent b4492fffba
commit bd6ad88077
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -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 {