Skip to content

Commit

Permalink
Length check config value
Browse files Browse the repository at this point in the history
  • Loading branch information
tomarrell committed Apr 30, 2021
1 parent 602f543 commit c06a300
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/golinters/wrapcheck.go
Expand Up @@ -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)
Expand Down

0 comments on commit c06a300

Please sign in to comment.