(auths []*cliproxyauth.Auth)
| 356 | } |
| 357 | |
| 358 | func 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 | |
| 372 | func (s *FileTokenStore) idFor(path, baseDir string) string { |
| 373 | id := path |