From 36d1c4540af3ef058d68092e41af05aa4a8c5eca Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 8 Mar 2018 18:48:26 +0100 Subject: all: fix gometalinter warnings Fix typos, non-canonical code, remove dead code, etc. --- prog/encoding.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'prog/encoding.go') 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 -- cgit mrf-deployment