diff options
author | Teddy Wing | 2023-05-21 13:59:54 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-21 13:59:54 +0200 |
commit | 2fba3d707aee35914734808c3db2ac3b0cb74c95 (patch) | |
tree | e8676835f8082d1f23d2c9d0a3a63e105f33d5b1 | |
parent | 859d89a12cfb3a4b92dc292a43daa0641acf69c3 (diff) | |
download | godefererr-2fba3d707aee35914734808c3db2ac3b0cb74c95.tar.bz2 |
Update `firstDeferEndPos` name
Clarify intended contents.
-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 |