dev: eliminate redundant indentation ()

This commit is contained in:
Oleksandr Redko 2024-04-16 17:46:02 +03:00 committed by GitHub
parent 375fa11cca
commit b09bd6e4fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

@ -96,6 +96,7 @@ linters-settings:
require-specific: true # require nolint directives to be specific about which linter is being skipped
revive:
rules:
- name: indent-error-flow
- name: unexported-return
disabled: true
- name: unused-parameter

@ -48,9 +48,8 @@ func (b *PluginGoBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
lc, err := b.loadConfig(cfg, name, &settings)
if err != nil {
return nil, fmt.Errorf("unable to load custom analyzer %q: %s, %w", name, settings.Path, err)
} else {
linters = append(linters, lc)
}
linters = append(linters, lc)
}
return linters, nil