Skip to content

Commit bdae2e5

Browse files
committed
review
1 parent 0591654 commit bdae2e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/lint/lintersdb/validator.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (v Validator) Validate(cfg *config.Config) error {
4343
}
4444

4545
func (v Validator) validateLintersNames(cfg *config.Linters) error {
46-
allNames := append([]string{}, cfg.Enable...)
46+
allNames := cfg.Enable
4747
allNames = append(allNames, cfg.Disable...)
4848

4949
var unknownNames []string
@@ -91,7 +91,7 @@ func (v Validator) alternativeNamesDeprecation(cfg *config.Linters) error {
9191
}
9292
}
9393

94-
names := append([]string{}, cfg.Enable...)
94+
names := cfg.Enable
9595
names = append(names, cfg.Disable...)
9696

9797
for _, name := range names {

0 commit comments

Comments
 (0)