mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
reflect: remove useless parameter from newName
pkgPath always received the empty string. Worse yet, it panicked if it received anything else. This has been the case ever since newName was introduced in early 2016. Change-Id: I5f164305bd30c34455ef35e776c7616f303b37e4 Reviewed-on: https://go-review.googlesource.com/54331 Run-TryBot: Daniel Martí <mvdan@mvdan.cc> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
parent
2918652660
commit
9c9df65c53
2 changed files with 12 additions and 19 deletions
|
|
@ -111,7 +111,7 @@ func IsExported(t Type) bool {
|
|||
}
|
||||
|
||||
func ResolveReflectName(s string) {
|
||||
resolveReflectName(newName(s, "", "", false))
|
||||
resolveReflectName(newName(s, "", false))
|
||||
}
|
||||
|
||||
type Buffer struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue