Skip to content

Commit

Permalink
fix: fix missing error (#34)
Browse files Browse the repository at this point in the history
Signed-off-by: Lars Lehtonen <lars.lehtonen@gmail.com>
  • Loading branch information
alrs authored Aug 26, 2023
1 parent 7f83ae6 commit 2ebf406
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions huawei.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ func post(url string, param []byte, headers map[string]string) (string, error) {
}

resp, err := client.Do(req)
if err != nil {
return "", err
}
defer resp.Body.Close()
body, err := ioutil.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit 2ebf406

Please sign in to comment.