fix: resolve wsl_v5 lint issues
This commit is contained in:
@@ -224,6 +224,7 @@ func (s *Handlers) HandleSendCommand() http.HandlerFunc {
|
||||
}
|
||||
|
||||
var req request
|
||||
|
||||
err := json.NewDecoder(r.Body).Decode(&req)
|
||||
if err != nil {
|
||||
s.respondJSON(w, r, map[string]string{"error": "invalid request"}, http.StatusBadRequest)
|
||||
|
||||
Reference in New Issue
Block a user