Skip to content

Commit d724a61

Browse files
ldezalexandear
andcommitted
review
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
1 parent 961e81a commit d724a61

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

pkg/lint/lintersdb/validator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,7 @@ func (v Validator) alternativeNamesDeprecation(cfg *config.Linters) error {
9191
}
9292
}
9393

94-
var names []string
95-
names = append(names, cfg.Enable...)
94+
names := append([]string{}, cfg.Enable...)
9695
names = append(names, cfg.Disable...)
9796

9897
for _, name := range names {

pkg/logutils/mock.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ func (m *MockLog) SetLevel(level LogLevel) {
4747
}
4848

4949
func (m *MockLog) OnFatalf(format string, args ...any) *MockLog {
50-
arguments := []any{format}
51-
arguments = append(arguments, args...)
50+
arguments := append([]any{format}, args...)
5251

5352
m.On("Fatalf", arguments...)
5453

0 commit comments

Comments
 (0)