MCPcopy Create free account
hub / github.com/coder/coder / hasNonEmptyEnv

Function hasNonEmptyEnv

agent/reconnectingpty/reconnectingpty.go:75–78  ·  view source on GitHub ↗
(env []string, name string)

Source from the content-addressed store, hash-verified

73}
74
75func hasNonEmptyEnv(env []string, name string) bool {
76 value, ok := envValue(env, name)
77 return ok && value != ""
78}
79
80// envValue returns the effective value for name using the last assignment.
81func envValue(env []string, name string) (string, bool) {

Callers 1

withTerminalEnvFunction · 0.85

Calls 1

envValueFunction · 0.85

Tested by

no test coverage detected