fix: lint for var blocks

Raphael Amorim created

Change summary

internal/llm/provider/anthropic.go        | 6 ++----
internal/tui/exp/list/filterable_group.go | 8 +++-----
2 files changed, 5 insertions(+), 9 deletions(-)

Detailed changes

internal/llm/provider/anthropic.go 🔗

@@ -21,10 +21,8 @@ import (
 	"github.com/charmbracelet/crush/internal/message"
 )
 
-var (
-	// Pre-compiled regex for parsing context limit errors.
-	contextLimitRegex = regexp.MustCompile(`input length and ` + "`max_tokens`" + ` exceed context limit: (\d+) \+ (\d+) > (\d+)`)
-)
+// Pre-compiled regex for parsing context limit errors.
+var contextLimitRegex = regexp.MustCompile(`input length and ` + "`max_tokens`" + ` exceed context limit: (\d+) \+ (\d+) > (\d+)`)
 
 type anthropicClient struct {
 	providerOptions   providerClientOptions

internal/tui/exp/list/filterable_group.go 🔗

@@ -15,11 +15,9 @@ import (
 	"github.com/sahilm/fuzzy"
 )
 
-var (
-	// Pre-compiled regex for checking if a string is alphanumeric.
-	// Note: This is duplicated from filterable.go to avoid circular dependencies.
-	alphanumericRegexGroup = regexp.MustCompile(`^[a-zA-Z0-9]*$`)
-)
+// Pre-compiled regex for checking if a string is alphanumeric.
+// Note: This is duplicated from filterable.go to avoid circular dependencies.
+var alphanumericRegexGroup = regexp.MustCompile(`^[a-zA-Z0-9]*$`)
 
 type FilterableGroupList[T FilterableItem] interface {
 	GroupedList[T]