From 4410b65005bd5c6170573eb79dffce60f66ed5b2 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 26 Aug 2024 10:30:12 +0200 Subject: [PATCH] doc: update linter description --- pkg/analyzer/analyzer.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/analyzer/analyzer.go b/pkg/analyzer/analyzer.go index 5cd7108..a65efbb 100644 --- a/pkg/analyzer/analyzer.go +++ b/pkg/analyzer/analyzer.go @@ -16,7 +16,7 @@ import ( var Analyzer = &analysis.Analyzer{ Name: "fatcontext", - Doc: "detects nested contexts in loops", + Doc: "detects nested contexts in loops and function literals", Run: run, Requires: []*analysis.Analyzer{inspect.Analyzer}, } @@ -70,7 +70,6 @@ func run(pass *analysis.Pass) (interface{}, error) { Message: getReportMessage(node), SuggestedFixes: fixes, }) - }) return nil, nil