@@ -6,25 +6,25 @@ import (
66 "github.com/sdsc-ordes/quitsh/pkg/log"
77)
88
9- // alreadyReportedErr is an wrapping error which can be dropped by `DropReported`.
10- type alreadyReportedErr struct {
9+ // alreadyReportedError is an wrapping error which can be dropped by `DropReported`.
10+ type alreadyReportedError struct {
1111 e error
1212}
1313
14- func (e * alreadyReportedErr ) Error () string {
14+ func (e * alreadyReportedError ) Error () string {
1515 return e .e .Error ()
1616}
1717
18- func (e * alreadyReportedErr ) Unwrap () error {
18+ func (e * alreadyReportedError ) Unwrap () error {
1919 return e .e
2020}
2121
22- // WrapAsReported returns a new wrapped errors which indicates
22+ // WrapAsReported returns a new wrapped error which indicates
2323// that it is already reported.
24- // Useful for bigger errors, which you want to propagate upwards but
25- // maybe ignore in logging with [FilterAlreadyReported].
24+ // Useful for bigger errors, which you still want to propagate upwards but
25+ // maybe ignore in logging then with [FilterAlreadyReported].
2626func WrapAsReported (e error ) error {
27- return & alreadyReportedErr {e : e }
27+ return & alreadyReportedError {e : e }
2828}
2929
3030// FilterAlreadyReported filters `ErrAlreadyReported` from the chain.
@@ -56,7 +56,7 @@ func FilterAlreadyReported(err error) error {
5656 // Backtracking
5757 // Reconstruct errors.
5858 ignore := false
59- if _ , ok := node .e .(* alreadyReportedErr ); ok { //nolint:errorlint // This is ok.
59+ if _ , ok := node .e .(* alreadyReportedError ); ok { //nolint:errorlint // This is ok.
6060 ignore = true
6161 }
6262
0 commit comments