diff options
author | Teddy Wing | 2023-05-25 20:48:59 +0200 |
---|---|---|
committer | Teddy Wing | 2023-05-25 20:48:59 +0200 |
commit | 775991e6a57fddfd69f1cae4d0aee9c234855286 (patch) | |
tree | aeb46cad0a970dda651d75780944837b22fb3ee0 /defererr.go | |
parent | 8102c9e6fe7e12d625718e362abb29bf1ecdb13c (diff) | |
download | godefererr-775991e6a57fddfd69f1cae4d0aee9c234855286.tar.bz2 |
checkErrorAssignedInDefer: Remove obsolete TODO
Since we don't want to bother with functions that return multiple
values, don't actually report a suggested return signature replacement.
Diffstat (limited to 'defererr.go')
-rw-r--r-- | defererr.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/defererr.go b/defererr.go index d0c6d6f..498708c 100644 --- a/defererr.go +++ b/defererr.go @@ -302,8 +302,6 @@ func checkErrorAssignedInDefer( if !isErrorNameInReturnSignature { pass.Reportf( errorReturnField.Pos(), - // TODO: Get the actual signature and set the error - // name in front of the error type. "return signature should use named error parameter %s", lhsIdent, ) |