From fa24620c50a56ae6c3c31575e861098d0f0ed177 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Mon, 29 Sep 2025 21:48:35 +0200 Subject: run `modernize -fix ./...` Also drop util/gocovcat.go which has been obsolete since 122068efd4a348921b736b4456d4e1c999dbfb79. --- internal/prompt/cloud.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/prompt/cloud.go') diff --git a/internal/prompt/cloud.go b/internal/prompt/cloud.go index 624f56d..14cd18a 100644 --- a/internal/prompt/cloud.go +++ b/internal/prompt/cloud.go @@ -86,7 +86,7 @@ func getKubernetesFieldViaU8S() string { context string namespace string ) - for _, line := range strings.Split(string(stdout), "\n") { + for line := range strings.SplitSeq(string(stdout), "\n") { fields := strings.SplitN(strings.TrimSpace(line), "=", 2) if len(fields) != 2 { continue -- cgit v1.3.1