Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
devhaozi committed Oct 20, 2024
1 parent 730aea0 commit 1378413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/service/ws.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 1378413

Please sign in to comment.