diff --git a/CHANGELOG.md b/CHANGELOG.md index 02164fc..1013cb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [5.2.3] - 2022-05-30 +### Fixed +- Fixed errors.As wrapper, linter is wrong. + ## [5.2.2] - 2022-05-30 ### Fixed - Fixed calling error helpers on first wrap only, where the source of the data will be. @@ -25,7 +29,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated deps. -[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.2...HEAD +[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.3...HEAD +[5.2.3]: https://github.com/go-playground/errors/compare/v5.2.2...v5.2.3 [5.2.2]: https://github.com/go-playground/errors/compare/v5.2.1...v5.2.2 [5.2.1]: https://github.com/go-playground/errors/compare/v5.2.0...v5.2.1 [5.2.0]: https://github.com/go-playground/errors/compare/v5.1.1...v5.2.0 \ No newline at end of file diff --git a/README.md b/README.md index cff1e28..46f9367 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ Package errors ============ -![Project status](https://img.shields.io/badge/version-5.2.2-green.svg) +![Project status](https://img.shields.io/badge/version-5.2.3-green.svg) [![Build Status](https://travis-ci.org/go-playground/errors.svg?branch=master)](https://travis-ci.org/go-playground/errors) [![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/errors)](https://goreportcard.com/report/github.com/go-playground/errors) [![GoDoc](https://godoc.org/github.com/go-playground/errors?status.svg)](https://pkg.go.dev/github.com/go-playground/errors/v5) diff --git a/errors.go b/errors.go index 81477d5..54f1e13 100644 --- a/errors.go +++ b/errors.go @@ -186,5 +186,5 @@ func Is(err, target error) bool { // As panics if target is not a non-nil pointer to either a type that implements // error, or to any interface type. func As(err error, target any) bool { - return stderrors.As(err, &target) + return stderrors.As(err, target) }