Skip to content

Commit

Permalink
Add returning error
Browse files Browse the repository at this point in the history
  • Loading branch information
gowizzard committed Jan 1, 2021
1 parent 362b25b commit bf4fc2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ func NewInvoice(config Invoice) (InvoiceReturn, error) {

// Response to sevDesk
response, err := client.Do(request)
if err != nil {
return InvoiceReturn{}, err
}

// Close response
defer response.Body.Close()
Expand Down

0 comments on commit bf4fc2d

Please sign in to comment.