diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2022-02-17 12:08:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-17 12:08:46 +0000 |
commit | 095026c3d50df760f64a714b79c380f08699012a (patch) | |
tree | 0b873fbbc1f456fab836333ebe8992f9cd863a1e /vendor/github.com/google/go-cmp/cmp/internal/value/name.go | |
parent | c018c0f3c7194f2cc8c6ca4082585a71d243f979 (diff) | |
download | podman-095026c3d50df760f64a714b79c380f08699012a.tar.gz podman-095026c3d50df760f64a714b79c380f08699012a.tar.bz2 podman-095026c3d50df760f64a714b79c380f08699012a.zip |
Bump github.com/containers/buildah from 1.24.1 to 1.24.2
Bumps [github.com/containers/buildah](https://github.com/containers/buildah) from 1.24.1 to 1.24.2.
- [Release notes](https://github.com/containers/buildah/releases)
- [Changelog](https://github.com/containers/buildah/blob/main/CHANGELOG.md)
- [Commits](https://github.com/containers/buildah/compare/v1.24.1...v1.24.2)
---
updated-dependencies:
- dependency-name: github.com/containers/buildah
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Diffstat (limited to 'vendor/github.com/google/go-cmp/cmp/internal/value/name.go')
-rw-r--r-- | vendor/github.com/google/go-cmp/cmp/internal/value/name.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go index b6c12cefb..7b498bb2c 100644 --- a/vendor/github.com/google/go-cmp/cmp/internal/value/name.go +++ b/vendor/github.com/google/go-cmp/cmp/internal/value/name.go @@ -9,6 +9,8 @@ import ( "strconv" ) +var anyType = reflect.TypeOf((*interface{})(nil)).Elem() + // TypeString is nearly identical to reflect.Type.String, // but has an additional option to specify that full type names be used. func TypeString(t reflect.Type, qualified bool) string { @@ -20,6 +22,11 @@ func appendTypeName(b []byte, t reflect.Type, qualified, elideFunc bool) []byte // of the same name and within the same package, // but declared within the namespace of different functions. + // Use the "any" alias instead of "interface{}" for better readability. + if t == anyType { + return append(b, "any"...) + } + // Named type. if t.Name() != "" { if qualified && t.PkgPath() != "" { |