[BUG] False Positive for HaveOccurred()
matcher with .Error()
#173
Labels
bug
Something isn't working
HaveOccurred()
matcher with .Error()
#173
Describe the bug
When using the
.Error()
chaining method on an expectation, the linter incorrectly finds an issue, even though this exact pattern is shown in the official documentation asSee https://onsi.github.io/gomega/#handling-errors
To Reproduce
Returns
Expected behavior
Get no warning.
Environment:
Additional context
We first observed this when bumping golangci-lint, which bumped this linter from 0.16.0 to 0.18.0
The text was updated successfully, but these errors were encountered: