diff options
author | Didier Spezia <didier.06@gmail.com> | 2015-08-23 12:41:07 +0000 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2015-12-05 04:01:28 +0000 |
commit | e0c05fcb5b92dee3ab130e41c574b31625514dfe (patch) | |
tree | 79d90f82938056f450ef1862b2e7514511ad2d78 /src/cmd/pprof | |
parent | a456e356b2ff551f77640269e6bab06732b98e15 (diff) | |
download | go-e0c05fcb5b92dee3ab130e41c574b31625514dfe.tar.gz go-e0c05fcb5b92dee3ab130e41c574b31625514dfe.zip |
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>
Diffstat (limited to 'src/cmd/pprof')
-rw-r--r-- | src/cmd/pprof/internal/profile/legacy_profile.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/pprof/internal/profile/legacy_profile.go b/src/cmd/pprof/internal/profile/legacy_profile.go index e4c92cdd19..c7c047a64b 100644 --- a/src/cmd/pprof/internal/profile/legacy_profile.go +++ b/src/cmd/pprof/internal/profile/legacy_profile.go @@ -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}}, }) } |