Skip to content

Commit

Permalink
fix lintint + changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
vifer committed May 27, 2024
1 parent 714943a commit 884af38
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,19 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Check our main [developer changelog](https://developer.paddle.com/?utm_source=dx&utm_medium=paddle-go-sdk) for information about changes to the Paddle Billing platform, the Paddle API, and other developer tools.

## 0.3.0 - 2024-05-27

### Breaking changes

- `Event` and `NotificationsEvent` are now an interfaces.
- `NotificationsEvent` has moved package to `paddlenotification`.

### Added

- New `paddlenotification` package.
- Support for `/events` and `/notifications` endpoints.


## 0.1.0 - 2024-05-07

### Added
Expand Down
6 changes: 4 additions & 2 deletions collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,15 @@ func (c *Collection[T]) UnmarshalJSON(b []byte) error {
if err != nil {
return err
}
c.results = append(c.results, &Res[T]{value: any(e).(T)})

c.results = append(c.results, &Res[T]{value: any(e).(T)}) //nolint:forcetypeassert // we know the type is correct.
default:
var t T
if err := json.Unmarshal(item, &t); err != nil {
return err
}
c.results = append(c.results, &Res[T]{value: t})

c.results = append(c.results, &Res[T]{value: t}) //nolint:forcetypeassert // we know the type is correct.
}
}

Expand Down

0 comments on commit 884af38

Please sign in to comment.