8000 chore: clarify error variable name in doAttach · aaronlehmann/coder@394a98e · GitHub
[go: up one dir, main page]

Skip to content

Commit 394a98e

Browse files
committed
chore: clarify error variable name in doAttach
Claude Code noticed this and suggested a correction. It's completely cosmetic, but seemed worth fixing.
1 parent f475555 commit 394a98e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

agent/reconnectingpty/screen.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ func (rpty *screenReconnectingPTY) doAttach(ctx context.Context, conn net.Conn,
307307
if closeErr != nil {
308308
logger.Debug(ctx, "closed ptty with error", slog.Error(closeErr))
309309
}
310-
closeErr = process.Kill()
311-
if closeErr != nil {
312-
logger.Debug(ctx, "killed process with error", slog.Error(closeErr))
310+
killErr := process.Kill()
311+
if killErr != nil {
312+
logger.Debug(ctx, "killed process with error", slog.Error(killErr))
313313
}
314314
rpty.metrics.WithLabelValues("screen_wait").Add(1)
315315
return nil, nil, err

0 commit comments

Comments
 (0)
0