Closed dnwe closed 3 years ago
I like this change. Also, thanks for introducing analysistest.RunWithSuggestedFixes
. Sorry for the late response. I moved from another continent with the whole family and just started having some time for myself.
This feature is now included in v1.3.1
: https://github.com/fatih/errwrap/releases/tag/v1.3.1
@fatih thanks!
Adds support for detecting and fixing the following Errorf case where the developer had previously add a call to
.Error()
in their Errorf statement:This PR also switches to running the tests with the new analysistest.RunWithSuggestedFixes helper to verify the
-fix
behaviour using golden files.