From 1378413e54efedb27e753cf440bf42f89d70a22c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 21 Oct 2024 01:35:32 +0800 Subject: [PATCH] fix: lint --- internal/service/ws.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/service/ws.go b/internal/service/ws.go index 9d67d952ce..d7723eb9b8 100644 --- a/internal/service/ws.go +++ b/internal/service/ws.go @@ -91,7 +91,7 @@ func (s *WsService) Exec(w http.ResponseWriter, r *http.Request) { } ctx, cancel := context.WithCancel(context.Background()) - out, err := shell.ExecfWithPipe(ctx, string(cmd)) + out, err := shell.ExecfWithPipe(ctx, string(cmd)) // nolint: govet if err != nil { _ = ws.WriteMessage(websocket.CloseMessage, websocket.FormatCloseMessage(websocket.CloseNormalClosure, "failed to run command")) cancel()