aboutsummaryrefslogtreecommitdiffstats
path: root/defererr.go
diff options
context:
space:
mode:
Diffstat (limited to 'defererr.go')
-rw-r--r--defererr.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/defererr.go b/defererr.go
index 8d1cb51..a4e6c8d 100644
--- a/defererr.go
+++ b/defererr.go
@@ -144,6 +144,8 @@ func run(pass *analysis.Pass) (interface{}, error) {
}
}
+ // Maybe don't report the error if it was declared in the closure using a GenDecl? -> We already don't. Should test for these things.
+
if !isErrorNameInReturnSignature {
pass.Reportf(
errorReturnField.Pos(),