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