extends/storage/consul.go
Method Storage.Delete
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Storage) Delete(ctx context.Context, key string) error {
kv, _, err := s.KV.Get(s.generateKey(key), &api.QueryOptions{RequireConsistent: true})
if err != nil {
return fmt.Errorf("unable to get data: %s, key: %s", err.Error(), s.generateKey(key))
}