1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:14:42 -07:00

internal/pprof/profile: simplify variable use

This commit is contained in:
Abirdcfly 2022-07-27 10:11:18 +08:00
parent faf4e97200
commit 9366b89c47
No known key found for this signature in database
GPG Key ID: A4EA876831B0458B

View File

@ -175,7 +175,7 @@ var profileDecoder = []decoder{
if err != nil {
return err
}
if *&m.(*Profile).stringTable[0] != "" {
if m.(*Profile).stringTable[0] != "" {
return errors.New("string_table[0] must be ''")
}
return nil