Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Type asserting to convert an interface (error) to the concrete type is unnecessary when using errors.As. The documentation states the following: > As finds the first error in err's chain that matches target, and if > one is found, sets target to that error value and returns true. > Otherwise, it returns false. Remove the assertion as the error was already stored in the variable. The path stored in the error can be directly accessed.
- Loading branch information