dev: eliminate redundant indentation (#4650)
This commit is contained in:
parent
375fa11cca
commit
b09bd6e4fc
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user