Skip to content

Commit

Permalink
Fix staticcheck lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Starttoaster committed Sep 21, 2024
1 parent d858ad7 commit a1c6cad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion request.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package proxmox

import (
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
Expand Down Expand Up @@ -69,7 +70,7 @@ func (c *Client) Do(req *http.Request, v interface{}) (*http.Response, error) {
return nil, fmt.Errorf("error reading Proxmox response body: %v", err)
}

return resp, fmt.Errorf(string(body))
return resp, errors.New(string(body))
}

// Copy body into v
Expand Down

0 comments on commit a1c6cad

Please sign in to comment.