Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Mar 28, 2024
1 parent d724a61 commit 1b13606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/lint/lintersdb/validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (v Validator) Validate(cfg *config.Config) error {
}

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

var unknownNames []string
Expand Down Expand Up @@ -91,7 +91,7 @@ func (v Validator) alternativeNamesDeprecation(cfg *config.Linters) error {
}
}

names := append([]string{}, cfg.Enable...)
names := cfg.Enable
names = append(names, cfg.Disable...)

for _, name := range names {
Expand Down

0 comments on commit 1b13606

Please sign in to comment.