File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,16 +12,16 @@ func New(settings *config.SpancheckSettings) *goanalysis.Linter {
1212 cfg := spancheck .NewDefaultConfig ()
1313
1414 if settings != nil {
15- if settings .Checks != nil {
15+ if len ( settings .Checks ) > 0 {
1616 cfg .EnabledChecks = settings .Checks
1717 }
1818
19- if settings .IgnoreCheckSignatures != nil {
19+ if len ( settings .IgnoreCheckSignatures ) > 0 {
2020 cfg .IgnoreChecksSignaturesSlice = settings .IgnoreCheckSignatures
2121 }
2222
23- if settings .ExtraStartSpanSignatures != nil {
24- cfg .StartSpanMatchersSlice = settings .ExtraStartSpanSignatures
23+ if len ( settings .ExtraStartSpanSignatures ) > 0 {
24+ cfg .StartSpanMatchersSlice = append ( cfg . StartSpanMatchersSlice , settings .ExtraStartSpanSignatures ... )
2525 }
2626 }
2727
You can’t perform that action at this time.
0 commit comments