diff --git a/pkg/golinters/wrapcheck.go b/pkg/golinters/wrapcheck.go index 05546017a41d..39fea504b1e0 100644 --- a/pkg/golinters/wrapcheck.go +++ b/pkg/golinters/wrapcheck.go @@ -13,7 +13,9 @@ const wrapcheckName = "wrapcheck" func NewWrapcheck(cfg *config.WrapcheckSettings) *goanalysis.Linter { c := wrapcheck.NewDefaultConfig() if cfg != nil { - c.IgnoreSigs = cfg.IgnoreSigs + if len(cfg.IgnoreSigs) != 0 { + c.IgnoreSigs = cfg.IgnoreSigs + } } a := wrapcheck.NewAnalyzer(c)