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

Method labelFor

internal/store/gitstore.go:553–567  ·  view source on GitHub ↗
(metadata map[string]any)

Source from the content-addressed store, hash-verified

551}
552
553func (s *GitTokenStore) labelFor(metadata map[string]any) string {
554 if metadata == nil {
555 return ""
556 }
557 if v, ok := metadata["label"].(string); ok && v != "" {
558 return v
559 }
560 if v, ok := metadata["email"].(string); ok && v != "" {
561 return v
562 }
563 if project, ok := metadata["project_id"].(string); ok && project != "" {
564 return project
565 }
566 return ""
567}
568
569func (s *GitTokenStore) baseDirSnapshot() string {
570 s.dirLock.RLock()

Callers 1

readAuthFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected