diff options
| author | 2026-06-07 08:57:29 +0000 | |
|---|---|---|
| committer | 2026-06-07 08:57:29 +0000 | |
| commit | f0b42f343247aea940e5b465ca2221a731f617f5 (patch) | |
| tree | 2a592767d0bf96b784cb0b957cfa1ecd63980fa5 /internal/testgit/command.go | |
| parent | object/commit: noinlineerr (diff) | |
internal/testgit: Fix lints too
Diffstat (limited to 'internal/testgit/command.go')
| -rw-r--r-- | internal/testgit/command.go | 2 |
1 files changed, 2 insertions, 0 deletions
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 |
