mirror of
https://github.com/golang/go
synced 2024-09-15 22:20:06 +00:00
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:
parent
515040548c
commit
f469f20e79
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue