MCPcopy Index your code
hub / github.com/coder/coder / cleanRef

Function cleanRef

aibridge/session.go:89–96  ·  view source on GitHub ↗
(str string)

Source from the content-addressed store, hash-verified

87}
88
89func cleanRef(str string) *string {
90 str = strings.TrimSpace(str)
91 if str == "" {
92 return nil
93 }
94
95 return utils.PtrTo(str)
96}

Callers 1

GuessSessionIDFunction · 0.85

Calls 1

PtrToFunction · 0.92

Tested by

no test coverage detected