summaryrefslogtreecommitdiff
path: root/src/pkg/datafmt/parser.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/datafmt/parser.go')
-rw-r--r--src/pkg/datafmt/parser.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pkg/datafmt/parser.go b/src/pkg/datafmt/parser.go
index 245689a0c..d1fa3f2cb 100644
--- a/src/pkg/datafmt/parser.go
+++ b/src/pkg/datafmt/parser.go
@@ -368,7 +368,7 @@ func Parse(filename string, src []byte, fmap FormatterMap) (Format, os.Error) {
// add custom formatters, if any
for name, form := range fmap {
name = remap(&p, name);
- if t, found := p.rules[name]; !found {
+ if _, found := p.rules[name]; !found {
p.rules[name] = &custom{name, form};
} else {
var invalidPos token.Position;