internal/codespaces/portforwarder: define err in go func instead of use err defined in outer scope
Fixes #13001
This commit is contained in:
parent
1df6f84d70
commit
e53e360d5b
1 changed files with 1 additions and 1 deletions
|
|
@ -276,7 +276,7 @@ func (fwd *CodespacesPortForwarder) UpdatePortVisibility(ctx context.Context, re
|
|||
done := make(chan error)
|
||||
go func() {
|
||||
// Connect to the tunnel
|
||||
err = fwd.connection.Connect(ctx)
|
||||
err := fwd.connection.Connect(ctx)
|
||||
if err != nil {
|
||||
done <- fmt.Errorf("connect failed: %v", err)
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue