Delete removes the credential for the given server URL. No-op if the entry isn't present, or if the receiver is nil.
(serverURL string)
| 197 | // Delete removes the credential for the given server URL. No-op if the |
| 198 | // entry isn't present, or if the receiver is nil. |
| 199 | func (s *CredentialStore) Delete(serverURL string) { |
| 200 | if s == nil || s.Credentials == nil { |
| 201 | return |
| 202 | } |
| 203 | delete(s.Credentials, normalizeServerURL(serverURL)) |
| 204 | } |
| 205 | |
| 206 | // Save writes the store to disk in v2 format with mode 0600. Always |
| 207 | // writes the current version constant — even if the store was loaded |