From a630fd8b418650f8df52aead511ec4d27ca48ad2 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 3 May 2018 15:48:26 +0200 Subject: gometalinter: some fixes for unparam But we still can't enable it as there are more [uninteresting] warnings. Update #538 --- prog/hints.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prog/hints.go') diff --git a/prog/hints.go b/prog/hints.go index b16d50dad..11c7b697b 100644 --- a/prog/hints.go +++ b/prog/hints.go @@ -75,11 +75,11 @@ func (p *Prog) MutateWithHints(callIndex int, comps CompMap, exec func(p *Prog)) exec(p) } ForeachArg(c, func(arg Arg, _ *ArgCtx) { - generateHints(p, comps, c, arg, execValidate) + generateHints(comps, arg, execValidate) }) } -func generateHints(p *Prog, compMap CompMap, c *Call, arg Arg, exec func()) { +func generateHints(compMap CompMap, arg Arg, exec func()) { typ := arg.Type() if typ == nil || typ.Dir() == DirOut { return -- cgit mrf-deployment