aboutsummaryrefslogtreecommitdiffstats
path: root/prog/encoding.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-03-08 18:48:26 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-03-08 18:48:26 +0100
commit36d1c4540af3ef058d68092e41af05aa4a8c5eca (patch)
tree3657a5920e4b100749ccb9d2d555652e7b7e28e9 /prog/encoding.go
parent63ef857906766b3cafe4aebc43bc38edf42096c3 (diff)
all: fix gometalinter warnings
Fix typos, non-canonical code, remove dead code, etc.
Diffstat (limited to 'prog/encoding.go')
-rw-r--r--prog/encoding.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/prog/encoding.go b/prog/encoding.go
index 26ca80285..b409b7b81 100644
--- a/prog/encoding.go
+++ b/prog/encoding.go
@@ -317,7 +317,7 @@ top:
p.Parse('Y')
p.Parse('=')
typ = target.makeAnyPtrType(typ.Size(), typ.FieldName())
- typ1 = target.anyArray
+ typ1 = target.any.array
}
inner, err = target.parseArg(typ1, p, vars)
if err != nil {
@@ -797,8 +797,6 @@ func (p *parser) Ident() string {
p.failf("failed to parse identifier at pos %v", i)
return ""
}
- if ch := p.s[i]; ch >= '0' && ch <= '9' {
- }
s := p.s[i:p.i]
p.SkipWs()
return s