mirror of https://github.com/coder/coder.git
chore: nolint always return error function (#12701)
This commit is contained in:
parent
b4492fffba
commit
bd6ad88077
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue