summaryrefslogtreecommitdiff
path: root/internal/prompt/cloud.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2025-09-29 21:48:35 +0200
committerStefan Majewsky <majewsky@gmx.net>2025-09-29 21:48:35 +0200
commitfa24620c50a56ae6c3c31575e861098d0f0ed177 (patch)
treee6963f607605577ca06dfeff666e5a186bb2b15f /internal/prompt/cloud.go
parent24762f09de2aa8cada3f3c63afa313e06ebf47c8 (diff)
downloadgofu-fa24620c50a56ae6c3c31575e861098d0f0ed177.tar.gz
run `modernize -fix ./...`
Also drop util/gocovcat.go which has been obsolete since 122068efd4a348921b736b4456d4e1c999dbfb79.
Diffstat (limited to 'internal/prompt/cloud.go')
-rw-r--r--internal/prompt/cloud.go2
1 files changed, 1 insertions, 1 deletions
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