From c15e27166dfb8ef1c94cd8c87ab41edb4e98300f Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 25 May 2023 19:00:26 +0200 Subject: checkFunctions: Keep `continue` in return value loop Looks like the return value type is always an `*ast.Ident`. Use `continue` instead of `return true` to be more tolerant of unexpected values. --- testdata/signature.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'testdata') diff --git a/testdata/signature.go b/testdata/signature.go index 2606c22..0da2bb0 100644 --- a/testdata/signature.go +++ b/testdata/signature.go @@ -102,3 +102,7 @@ func good() (err error) { return err } + +func noErrorInReturn() string { + return "test" +} -- cgit v1.2.3