Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,21 @@ run:

linters:
enable:
- bodyclose
- errcheck
- errorlint
- gosimple
- govet
- ineffassign
- staticcheck
- unused

linters-settings:
errorlint:
errorf: true
asserts: true
comparison: true

issues:
exclude-dirs:
- internal/visualize/testdata
4 changes: 2 additions & 2 deletions internal/admin/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ func (c *HTTPClient) doWrite(ctx context.Context, method, path string, payload [
}

if lastErr != nil {
return nil, fmt.Errorf("%w: %v", ErrUnrecoverable, lastErr)
return nil, fmt.Errorf("%w: %w", ErrUnrecoverable, lastErr)
}
return nil, ErrUnrecoverable
}
Expand Down Expand Up @@ -286,7 +286,7 @@ func (c *HTTPClient) doRequest(ctx context.Context, path string, page, perPage i
}

if lastErr != nil {
return nil, fmt.Errorf("%w: %v", ErrUnrecoverable, lastErr)
return nil, fmt.Errorf("%w: %w", ErrUnrecoverable, lastErr)
}
return nil, ErrUnrecoverable
}
Expand Down
Loading