mirror of
https://github.com/golang/go
synced 2024-11-12 03:40:21 -07:00
cmd/pprof/internal: map/slice literals janitoring
Simplify slice/map literal expression. Caught with gofmt -d -s, fixed with gofmt -w -s Change-Id: I19723900d0649019bf79b9330d68525a68ed69c4 Reviewed-on: https://go-review.googlesource.com/13835 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
a456e356b2
commit
e0c05fcb5b
@ -589,7 +589,7 @@ func parseHeap(b []byte) (p *Profile, err error) {
|
||||
p.Sample = append(p.Sample, &Sample{
|
||||
Value: value,
|
||||
Location: sloc,
|
||||
NumLabel: map[string][]int64{"bytes": []int64{blocksize}},
|
||||
NumLabel: map[string][]int64{"bytes": {blocksize}},
|
||||
})
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user