Skip to content

Commit b09bd6e

Browse files
authored
dev: eliminate redundant indentation (#4650)
1 parent 375fa11 commit b09bd6e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.golangci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ linters-settings:
9696
require-specific: true # require nolint directives to be specific about which linter is being skipped
9797
revive:
9898
rules:
99+
- name: indent-error-flow
99100
- name: unexported-return
100101
disabled: true
101102
- name: unused-parameter

pkg/lint/lintersdb/builder_plugin_go.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ func (b *PluginGoBuilder) Build(cfg *config.Config) ([]*linter.Config, error) {
4848
lc, err := b.loadConfig(cfg, name, &settings)
4949
if err != nil {
5050
return nil, fmt.Errorf("unable to load custom analyzer %q: %s, %w", name, settings.Path, err)
51-
} else {
52-
linters = append(linters, lc)
5351
}
52+
linters = append(linters, lc)
5453
}
5554

5655
return linters, nil

0 commit comments

Comments
 (0)