build(deps): bump github.com/polyfloyd/go-errorlint from 1.5.1 to 1.5.2 (#4785)
Co-authored-by: Fernandez Ludovic <ldez@users.noreply.github.com>
This commit is contained in:
parent
2042b1f161
commit
9a7a1ad401
2
go.mod
2
go.mod
@ -84,7 +84,7 @@ require (
|
||||
github.com/nishanths/predeclared v0.2.2
|
||||
github.com/nunnatsa/ginkgolinter v0.16.2
|
||||
github.com/pelletier/go-toml/v2 v2.2.2
|
||||
github.com/polyfloyd/go-errorlint v1.5.1
|
||||
github.com/polyfloyd/go-errorlint v1.5.2
|
||||
github.com/quasilyte/go-ruleguard/dsl v0.3.22
|
||||
github.com/ryancurrah/gomodguard v1.3.2
|
||||
github.com/ryanrolds/sqlclosecheck v0.5.1
|
||||
|
4
go.sum
generated
4
go.sum
generated
@ -423,8 +423,8 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
||||
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
||||
github.com/polyfloyd/go-errorlint v1.5.1 h1:5gHxDjLyyWij7fhfrjYNNlHsUNQeyx0LFQKUelO3RBo=
|
||||
github.com/polyfloyd/go-errorlint v1.5.1/go.mod h1:sH1QC1pxxi0fFecsVIzBmxtrgd9IF/SkJpA6wqyKAJs=
|
||||
github.com/polyfloyd/go-errorlint v1.5.2 h1:SJhVik3Umsjh7mte1vE0fVZ5T1gznasQG3PV7U5xFdA=
|
||||
github.com/polyfloyd/go-errorlint v1.5.2/go.mod h1:sH1QC1pxxi0fFecsVIzBmxtrgd9IF/SkJpA6wqyKAJs=
|
||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c h1:ncq/mPwQF4JjgDlrVEn3C11VoGHZN7m8qihwgMEtzYw=
|
||||
github.com/power-devops/perfstat v0.0.0-20210106213030-5aafc221ea8c/go.mod h1:OmDBASR4679mdNQnz2pUhc2G8CO2JrUAVFDRBDP/hJE=
|
||||
github.com/prashantv/gostub v1.1.0 h1:BTyx3RfQjRHnUWaGF9oQos79AlQ5k8WNktv7VGvVH4g=
|
||||
|
@ -42,12 +42,12 @@ func errorLintComparison() {
|
||||
if errCompare != err { // want "comparing with != will fail on wrapped errors. Use errors.Is to check for a specific error"
|
||||
log.Println("not errCompare")
|
||||
}
|
||||
switch err { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
|
||||
case errCompare:
|
||||
switch err {
|
||||
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
|
||||
log.Println("errCompare")
|
||||
}
|
||||
switch errorLintDoThing() { // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
|
||||
case errCompare:
|
||||
switch errorLintDoThing() {
|
||||
case errCompare: // want "switch on an error will fail on wrapped errors. Use errors.Is to check for specific errors"
|
||||
log.Println("errCompare")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user