Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cc743a

Browse files
author
Aaron Lehmann
authored
chore: clarify error variable name in doAttach (#17284)
1 parentf8971bb commit8cc743a

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
ifcloseErr!=nil {
308308
logger.Debug(ctx,"closed ptty with error",slog.Error(closeErr))
309309
}
310-
closeErr=process.Kill()
311-
ifcloseErr!=nil {
312-
logger.Debug(ctx,"killed process with error",slog.Error(closeErr))
310+
killErr:=process.Kill()
311+
ifkillErr!=nil {
312+
logger.Debug(ctx,"killed process with error",slog.Error(killErr))
313313
}
314314
rpty.metrics.WithLabelValues("screen_wait").Add(1)
315315
returnnil,nil,err

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp