dev: eliminate redundant indentation (#4650)

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

View File

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

View File

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