MCPcopy Create free account
hub / github.com/GongShichen/LuminaCode / stringTrimSpace

Function stringTrimSpace

agent/worktree.go:90–96  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

88 _ = os.RemoveAll(path)
89 return nil
90}
91
92func stringTrimSpace(b []byte) string {
93 s := string(b)
94 for len(s) > 0 && (s[len(s)-1] == '\n' || s[len(s)-1] == '\r' || s[len(s)-1] == ' ' || s[len(s)-1] == '\t') {
95 s = s[:len(s)-1]
96 }
97 return s
98}
99

Callers 1

FindGitRootFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected