Skip to content

Commit 91b244d

Browse files
committed
Length check config value
1 parent 0e30a23 commit 91b244d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pkg/golinters/wrapcheck.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ const wrapcheckName = "wrapcheck"
1313
func NewWrapcheck(cfg *config.WrapcheckSettings) *goanalysis.Linter {
1414
c := wrapcheck.NewDefaultConfig()
1515
if cfg != nil {
16-
c.IgnoreSigs = cfg.IgnoreSigs
16+
if len(cfg.IgnoreSigs) != 0 {
17+
c.IgnoreSigs = cfg.IgnoreSigs
18+
}
1719
}
1820

1921
a := wrapcheck.NewAnalyzer(c)

0 commit comments

Comments
 (0)