*: add nolint comments to multiple errors wrapping

To be enabled after go 1.20 support is added.
This commit is contained in:
Anna Shaleva 2023-03-15 15:47:38 +03:00
parent 1db90e538f
commit 5f6c01336c
8 changed files with 29 additions and 29 deletions

View file

@ -406,7 +406,7 @@ type (
)
func mkErrValue(err error) error {
return fmt.Errorf("%w: %v", ErrInvalidValue, err)
return fmt.Errorf("%w: %v", ErrInvalidValue, err) //nolint:errorlint // errorlint: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors
}
// FromJSONWithTypes deserializes an item from typed-json representation.