chore: remove unnecessary testing concerns from env.New
๐ Generated with Crush
Assisted-by: GLM-4.7 via Crush <crush@charm.land>
commit1ca8abc0a1f24778c64091b2a0cd96e00a6b03f2
authorChristian Rocha <christian@rocha.is>
dateSun 18 Jan 2026, 17:37 (9 months ago)
parentfa8c764
internal/env/env.goโ4
@@ -2,7 +2,6 @@ package env
22
33import (
44 "os"
5โ "testing"
65)
76
87type Env interface {
@@ -26,9 +25,6 @@ func (o *osEnv) Env() []string {
2625}
2726
2827func New() Env {
29โ if testing.Testing() {
30โ return NewFromMap(nil)
31โ }
3228 return &osEnv{}
3329}
3430