Skip to content

Commit

Permalink
dev: eliminate redundant indentation (#4650)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Apr 16, 2024
1 parent 375fa11 commit b09bd6e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions pkg/lint/lintersdb/builder_plugin_go.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b09bd6e

Please sign in to comment.