Incorrect usage of the 'errors.As' function
Reports calls of the
errors.As function when the second argument is not a pointer to an interface or to a type that implements an error.
Such calls panic at runtime.
For more information about the
As function, see func As at go.dev.
After the Prepend '&' quick-fix is applied:
This inspection only reports if the language version is 1.13 or higher.