Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jfk9w committed Jul 3, 2023
1 parent 0f43cac commit e0489f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Go Reference](https://pkg.go.dev/badge/github.com/jfk9w-go/lkdr-api.svg)](https://pkg.go.dev/github.com/jfk9w-go/lkdr-api)
[![Go Report](https://goreportcard.com/badge/github.com/jfk9w-go/lkdr-api)](https://goreportcard.com/report/github.com/jfk9w-go/lkdr-api)
[![Go Coverage](https://github.com/jfk9w-go/lkdr-api/wiki/coverage.svg)](https://raw.githack.com/wiki/jfk9w-go/based/coverage.html)
[![Go Coverage](https://github.com/jfk9w-go/lkdr-api/wiki/coverage.svg)](https://raw.githack.com/wiki/jfk9w-go/lkdr-api/coverage.html)
[![CodeQL](https://github.com/jfk9w-go/lkdr-api/workflows/CodeQL/badge.svg)](https://github.com/jfk9w-go/lkdr-api/actions?query=workflow%3ACodeQL)

Клиент для сервиса ФНС [Мои Чеки Онлайн](https://lkdr.nalog.ru/login).
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func execute[R any](ctx context.Context, c *Client, in exchange[R]) (*R, error)
return nil, errors.New(httpResp.Status)
}

out := in.out()
var out R
if err := json.NewDecoder(httpResp.Body).Decode(&out); err != nil {
return nil, errors.Wrap(err, "decode response body")
}
Expand Down

0 comments on commit e0489f4

Please sign in to comment.