diff options
-rw-r--r-- | defererr.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/defererr.go b/defererr.go index 837fa90..e25ede7 100644 --- a/defererr.go +++ b/defererr.go @@ -74,7 +74,7 @@ func checkFunctions(pass *analysis.Pass, node ast.Node) { // Idea: Set this to the end token.Pos of the first `defer` // closure. Look for `return`s after that in funcDecl.Body and // ensure they include the error variable. - firstDeferEndPos := -1 + firstErrorDeferEndPos := -1 // Is it possible to generalise this to other types, and look for // anything set in `defer` with the same type as a result in the |