Skip to content

Commit

Permalink
fix: unused err (#283)
Browse files Browse the repository at this point in the history
fix: unused err
  • Loading branch information
SputNikPlop authored Nov 3, 2023
1 parent bf51f4f commit 3d86513
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/login/login_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ func loginRequest(method string, url string, payload io.Reader) (loginRequestRes
func loginRequestWithHeaders(method string, url string, payload io.Reader, headers []loginHeader) (loginRequestResponse, error) {
req, err := request.NewRequest(method, url, payload)

if err != nil {
return loginRequestResponse{}, err
}

for _, header := range headers {
req.Header.Add(header.Key, header.Value)
}
Expand Down

0 comments on commit 3d86513

Please sign in to comment.