From 6c22a3d2ddd599dab260b2d36d91b0292254893c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 4 Jun 2020 21:47:34 +0200 Subject: .golangci.yml: enable nestif checker Prevents functions with too many nested if's. --- pkg/ifuzz/decode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/ifuzz/decode.go') diff --git a/pkg/ifuzz/decode.go b/pkg/ifuzz/decode.go index 4e4c5873e..b16c9f0bd 100644 --- a/pkg/ifuzz/decode.go +++ b/pkg/ifuzz/decode.go @@ -10,7 +10,7 @@ import ( // Decode decodes instruction length for the given mode. // It can have falsely decode incorrect instructions, // but should not fail to decode correct instructions. -// nolint: gocyclo +// nolint: gocyclo, nestif func Decode(mode int, text []byte) (int, error) { if len(text) == 0 { return 0, fmt.Errorf("zero-length instruction") -- cgit mrf-deployment