MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / labelForVertex

Function labelForVertex

internal/cmd/vertex_import.go:126–139  ·  view source on GitHub ↗
(projectID, email string)

Source from the content-addressed store, hash-verified

124}
125
126func labelForVertex(projectID, email string) string {
127 p := strings.TrimSpace(projectID)
128 e := strings.TrimSpace(email)
129 if p != "" && e != "" {
130 return fmt.Sprintf("%s (%s)", p, e)
131 }
132 if p != "" {
133 return p
134 }
135 if e != "" {
136 return e
137 }
138 return "vertex"
139}

Callers 1

DoVertexImportFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected