internal/pprof/profile: simplify variable use

Change-Id: I73b5d7602fccec00e68e4516f483f90163088ad1
GitHub-Last-Rev: 9366b89c47
GitHub-Pull-Request: golang/go#54083
Reviewed-on: https://go-review.googlesource.com/c/go/+/419635
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
This commit is contained in:
Abirdcfly 2022-07-27 02:38:34 +00:00 committed by Michael Pratt
parent 515040548c
commit f469f20e79

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