From 35e1de6f975088ade5dbf0af533fe6fdac8fcc94 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 2 Nov 2025 23:42:15 +0200 Subject: some linter fixes --- internal/lsp/completion_messages_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/lsp/completion_messages_test.go') diff --git a/internal/lsp/completion_messages_test.go b/internal/lsp/completion_messages_test.go index f0c693c..bc02645 100644 --- a/internal/lsp/completion_messages_test.go +++ b/internal/lsp/completion_messages_test.go @@ -89,7 +89,7 @@ func contains(s, sub string) bool { } func stringIndex(s, sub string) int { - return len([]rune(s[:])) - len([]rune(s[:])) + (func() int { return intIndex(s, sub) })() + return intIndex(s, sub) } func intIndex(s, sub string) int { return Index(s, sub) } -- cgit v1.2.3