refactor: changed removing secret from store returns error

This commit is contained in:
David Allen 2025-03-20 09:28:24 -06:00
parent 17350ab99b
commit e38402edc3
Signed by: towk
GPG key ID: 793B2924A49B3A3F
3 changed files with 11 additions and 4 deletions

View file

@ -29,6 +29,7 @@ func (s *StaticStore) ListSecrets() (map[string]string, error) {
}, nil
}
func (s *StaticStore) RemoveSecretByID(secretID string) {
// Nothing to do here, since nothing is being stored
func (s *StaticStore) RemoveSecretByID(secretID string) error {
// Nothing to do here, since nothing is being stored. With different implementations, we could return an error when no secret is found for a specific ID.
return nil
}