Skip to content

Commit de0ef09

Browse files
author
Dean Karn
authored
fix errors.As issue (#17)
1 parent b313774 commit de0ef09

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [5.2.3] - 2022-05-30
10+
### Fixed
11+
- Fixed errors.As wrapper, linter is wrong.
12+
913
## [5.2.2] - 2022-05-30
1014
### Fixed
1115
- 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
2529
- Updated deps.
2630

2731

28-
[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.2...HEAD
32+
[Unreleased]: https://github.com/go-playground/errors/compare/v5.2.3...HEAD
33+
[5.2.3]: https://github.com/go-playground/errors/compare/v5.2.2...v5.2.3
2934
[5.2.2]: https://github.com/go-playground/errors/compare/v5.2.1...v5.2.2
3035
[5.2.1]: https://github.com/go-playground/errors/compare/v5.2.0...v5.2.1
3136
[5.2.0]: https://github.com/go-playground/errors/compare/v5.1.1...v5.2.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package errors
22
============
3-
![Project status](https://img.shields.io/badge/version-5.2.2-green.svg)
3+
![Project status](https://img.shields.io/badge/version-5.2.3-green.svg)
44
[![Build Status](https://travis-ci.org/go-playground/errors.svg?branch=master)](https://travis-ci.org/go-playground/errors)
55
[![Go Report Card](https://goreportcard.com/badge/github.com/go-playground/errors)](https://goreportcard.com/report/github.com/go-playground/errors)
66
[![GoDoc](https://godoc.org/github.com/go-playground/errors?status.svg)](https://pkg.go.dev/github.com/go-playground/errors/v5)

errors.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,5 +186,5 @@ func Is(err, target error) bool {
186186
// As panics if target is not a non-nil pointer to either a type that implements
187187
// error, or to any interface type.
188188
func As(err error, target any) bool {
189-
return stderrors.As(err, &target)
189+
return stderrors.As(err, target)
190190
}

0 commit comments

Comments
 (0)