assert: make tHelper a type alias

The tHelper interface is defined only for internal usage. We don't need
a "hard" type for it as we don't define methods on it. Let's make is
just a alias to the anonymous interface it represents.

Note: we are already using type aliases elswhere, and type aliases were
introduced a long time ago in Go 1.9.
pull/1562/head
Olivier Mengué 2024-03-03 18:29:24 +01:00
parent bb548d0473
commit 85fabe7c5c
2 changed files with 2 additions and 2 deletions

View File

@ -1872,7 +1872,7 @@ var spewConfigStringerEnabled = spew.ConfigState{
MaxDepth: 10,
}
type tHelper interface {
type tHelper = interface {
Helper()
}

View File

@ -6,7 +6,7 @@ type TestingT interface {
FailNow()
}
type tHelper interface {
type tHelper = interface {
Helper()
}