aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/debug/dwarf
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2010-03-30 10:51:11 -0700
committerRuss Cox <rsc@golang.org>2010-03-30 10:51:11 -0700
commitc7122a3c5888df468a96edd0cb071801030794e6 (patch)
tree2d2da3df77b17a34e87c21c1da72c1f501e2e5b9 /src/pkg/debug/dwarf
parent6962e2b7542964af7c750336bda18e4b07843039 (diff)
downloadgo-c7122a3c5888df468a96edd0cb071801030794e6.tar.xz
simplify various code using new map index rule
R=r CC=golang-dev https://golang.org/cl/833044
Diffstat (limited to 'src/pkg/debug/dwarf')
-rw-r--r--src/pkg/debug/dwarf/type_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/debug/dwarf/type_test.go b/src/pkg/debug/dwarf/type_test.go
index c3e456024c..6c2daaa56d 100644
--- a/src/pkg/debug/dwarf/type_test.go
+++ b/src/pkg/debug/dwarf/type_test.go
@@ -87,7 +87,7 @@ func testTypedefs(t *testing.T, d *Data) {
}
if want, ok := typedefTests[t1.Name]; ok {
- if _, ok := seen[t1.Name]; ok {
+ if seen[t1.Name] {
t.Errorf("multiple definitions for %s", t1.Name)
}
seen[t1.Name] = true
@@ -102,7 +102,7 @@ func testTypedefs(t *testing.T, d *Data) {
}
for k := range typedefTests {
- if _, ok := seen[k]; !ok {
+ if !seen[k] {
t.Errorf("missing %s", k)
}
}