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

Function compactPluginAuths

sdk/auth/filestore.go:358–370  ·  view source on GitHub ↗
(auths []*cliproxyauth.Auth)

Source from the content-addressed store, hash-verified

356}
357
358func compactPluginAuths(auths []*cliproxyauth.Auth) []*cliproxyauth.Auth {
359 if len(auths) == 0 {
360 return nil
361 }
362 out := auths[:0]
363 for _, auth := range auths {
364 if auth == nil {
365 continue
366 }
367 out = append(out, auth)
368 }
369 return out
370}
371
372func (s *FileTokenStore) idFor(path, baseDir string) string {
373 id := path

Callers 1

readAuthFilesMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected