Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-capeprivacy committed Jul 14, 2022
1 parent 6ce3ac8 commit 80e9d9b
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions cmd/cape/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,6 @@ func doRun(url string, functionID string, data []byte, insecure bool) ([]byte, e
log.Println("error writing deploy request")
return nil, err
}
// Try to read message
t, socketMsg, err := c.ReadMessage()
if err != nil {
log.Error("failed to fetch response", err)
}

if t == websocket.CloseMessage {
log.Errorf("failed to run with: %s", string(socketMsg))
}

var msg Message
err = c.ReadJSON(&msg)
Expand Down

0 comments on commit 80e9d9b

Please sign in to comment.