2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 11:27:17 +08:00

fix: lint

This commit is contained in:
耗子
2024-10-21 01:35:32 +08:00
parent 730aea037c
commit 1378413e54

View File

@@ -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()