From f0b42f343247aea940e5b465ca2221a731f617f5 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 7 Jun 2026 08:57:29 +0000 Subject: internal/testgit: Fix lints too --- internal/testgit/command.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/testgit/command.go') diff --git a/internal/testgit/command.go b/internal/testgit/command.go index dc960877..27fbd321 100644 --- a/internal/testgit/command.go +++ b/internal/testgit/command.go @@ -39,9 +39,11 @@ func (repo *Repo) Run( func setEnv(env []string, key string, value string) []string { prefix := key + "=" + i := slices.IndexFunc(env, func(entry string) bool { return strings.HasPrefix(entry, prefix) }) + if i >= 0 { env[i] = prefix + value -- cgit v1.3.1-10-gc9f91