From 2c7e14a847318974490ab59460f0834ea2ee0d24 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 4 May 2018 18:03:46 +0200 Subject: gometalinter: enable cyclomatic complexity checking Refactor some functions to be simpler. Update #538 --- pkg/ifuzz/encode.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/ifuzz/encode.go') diff --git a/pkg/ifuzz/encode.go b/pkg/ifuzz/encode.go index 0b3732aa7..4780c4bd8 100644 --- a/pkg/ifuzz/encode.go +++ b/pkg/ifuzz/encode.go @@ -11,6 +11,7 @@ import ( "math/rand" ) +// nolint: gocyclo func (insn *Insn) Encode(cfg *Config, r *rand.Rand) []byte { if !insn.isCompatible(cfg) { panic("instruction is not suitable for this mode") -- cgit mrf-deployment