From 775991e6a57fddfd69f1cae4d0aee9c234855286 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 25 May 2023 20:48:59 +0200 Subject: 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. --- defererr.go | 2 -- 1 file changed, 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, ) -- cgit v1.2.3